()
| 2571 | |
| 2572 | # flush will no-op without something in the unit of work |
| 2573 | def _(): |
| 2574 | class OK: |
| 2575 | pass |
| 2576 | |
| 2577 | self._map_it(OK) |
| 2578 | |
| 2579 | s = fixture_session() |
| 2580 | s.add(OK()) |
| 2581 | with assertions.expect_deprecated( |
| 2582 | "The `objects` parameter of `Session.flush` is deprecated" |
| 2583 | ): |
| 2584 | x_raises_(s, "flush", objects=(user_arg,)) |
| 2585 | |
| 2586 | _() |
| 2587 |
nothing calls this directly
no test coverage detected