(self)
| 14 | """Ingester cases.""" |
| 15 | |
| 16 | def test_db_provider(self): |
| 17 | db_provider = DbProvider() |
| 18 | db_provider.register_builder("pgsql", PgSqlDbBuilder()) |
| 19 | |
| 20 | config = { |
| 21 | "host": "pgsql", |
| 22 | "port": 1200, |
| 23 | "user": "test_user", |
| 24 | "password": "test_password", |
| 25 | } |
| 26 | |
| 27 | db = db_provider.get("pgsql", **config) |
| 28 | assert db is not None |
| 29 | logging.info(db.get_conn_str()) |
| 30 | |
| 31 | def test_ingest_pgsql(self): |
| 32 | ingest("data/accounts.xlsx", "testdb", "accounts", "pgsql") |
nothing calls this directly
no test coverage detected