MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_kwargs

Method test_kwargs

test/engine/test_parseconnect.py:562–573  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

560 e.connect()
561
562 def test_kwargs(self):
563 dbapi = MockDBAPI(
564 foober=12, lala=18, hoho={"this": "dict"}, fooz="somevalue"
565 )
566 e = create_engine(
567 "postgresql+psycopg2://scott:tiger@somehost/test?fooz="
568 "somevalue",
569 connect_args={"foober": 12, "lala": 18, "hoho": {"this": "dict"}},
570 module=dbapi,
571 _initialize=False,
572 )
573 e.connect()
574
575 def test_engine_from_config(self):
576 dbapi = mock_dbapi

Callers

nothing calls this directly

Calls 3

create_engineFunction · 0.90
MockDBAPIFunction · 0.70
connectMethod · 0.45

Tested by

no test coverage detected