MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_plain_db_lookup

Method test_plain_db_lookup

test/ext/test_horizontal_shard.py:378–391  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

376 eq_(tokyo.city, "Tokyo")
377
378 def test_plain_db_lookup(self):
379 self._fixture_data()
380 # not sure what this is testing except the fixture data itself
381 eq_(
382 db2.connect().execute(weather_locations.select()).fetchall(),
383 [(1, "Asia", "Tokyo")],
384 )
385 eq_(
386 db1.connect().execute(weather_locations.select()).fetchall(),
387 [
388 (2, "North America", "New York"),
389 (3, "North America", "Toronto"),
390 ],
391 )
392
393 def test_plain_core_lookup_w_shard(self):
394 sess = self._fixture_data()

Callers

nothing calls this directly

Calls 6

_fixture_dataMethod · 0.95
eq_Function · 0.90
fetchallMethod · 0.45
executeMethod · 0.45
connectMethod · 0.45
selectMethod · 0.45

Tested by

no test coverage detected