MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / test_list

Method test_list

test/orm/test_collection.py:2517–2525  ·  view source on GitHub ↗
(self, factory_type)

Source from the content-addressed store, hash-verified

2515
2516 @testing.combinations("direct", "as_callable", argnames="factory_type")
2517 def test_list(self, factory_type):
2518 if factory_type == "as_callable":
2519 # test passing as callable
2520
2521 # this codepath likely was not working for many major
2522 # versions, at least through 1.3
2523 self._test_list(lambda: [])
2524 else:
2525 self._test_list(list)
2526
2527 @testing.combinations("direct", "as_callable", argnames="factory_type")
2528 def test_list_no_setslice(self, factory_type):

Callers

nothing calls this directly

Calls 1

_test_listMethod · 0.95

Tested by

no test coverage detected