(self)
| 696 | ) |
| 697 | |
| 698 | def test_custom(self): |
| 699 | dbapi = MockDBAPI( |
| 700 | foober=12, lala=18, hoho={"this": "dict"}, fooz="somevalue" |
| 701 | ) |
| 702 | |
| 703 | def connect(): |
| 704 | return dbapi.connect( |
| 705 | foober=12, lala=18, fooz="somevalue", hoho={"this": "dict"} |
| 706 | ) |
| 707 | |
| 708 | # start the postgresql dialect, but put our mock DBAPI as the |
| 709 | # module instead of psycopg |
| 710 | |
| 711 | e = create_engine( |
| 712 | "postgresql+psycopg2://", |
| 713 | creator=connect, |
| 714 | module=dbapi, |
| 715 | _initialize=False, |
| 716 | ) |
| 717 | e.connect() |
| 718 | |
| 719 | def test_recycle(self): |
| 720 | dbapi = MockDBAPI( |
nothing calls this directly
no test coverage detected