From 26167c923448fae157f5134350e771928ad09b0b Mon Sep 17 00:00:00 2001 From: Max Nanis Date: Thu, 10 Sep 2026 11:17:07 -0700 Subject: basic tests should be working. Jenkins p1 --- tests/test_postgres.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'tests/test_postgres.py') diff --git a/tests/test_postgres.py b/tests/test_postgres.py index 6db4f82..244c132 100644 --- a/tests/test_postgres.py +++ b/tests/test_postgres.py @@ -51,3 +51,19 @@ class TestPostgresDjangoCreation: def test_ping(self, postgres_instance_dict: PostgresDict): assert can_ping(host=postgres_instance_dict["host"]) + + def test_django_creation( + self, + django_db_factory: Callable[..., None], + ): + dsn = django_db_factory() + assert isinstance(dsn, PostgresDsn) + + def test_django_tables(self, pg_config: PostgresConfig): + res = pg_config.execute_sql_query(query=""" + SELECT COUNT(*) + FROM information_schema.tables + WHERE table_schema = 'public'; + """) + assert len(res) == 1 + assert res[0]["count"] == 7 -- cgit v1.2.3