(autoflush=True, items_args={})
| 1934 | @testing.fixture |
| 1935 | def persistent_m2m_fixture(self, order_item_fixture): |
| 1936 | def _persistent_m2m_fixture(autoflush=True, items_args={}): |
| 1937 | Order, Item = order_item_fixture(items_args=items_args) |
| 1938 | |
| 1939 | o1 = Order() |
| 1940 | i1 = Item(description="i1") |
| 1941 | s = fixture_session(autoflush=autoflush) |
| 1942 | s.add(o1) |
| 1943 | s.flush() |
| 1944 | return o1, i1, s |
| 1945 | |
| 1946 | yield _persistent_m2m_fixture |
| 1947 |
nothing calls this directly
no test coverage detected