MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _

Method _

test/orm/test_session.py:2573–2584  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 4

_map_itMethod · 0.95
fixture_sessionFunction · 0.90
OKClass · 0.85
addMethod · 0.45

Tested by

no test coverage detected