aboutsummaryrefslogtreecommitdiff
path: root/tests/test_postgres.py
diff options
context:
space:
mode:
authorMax Nanis2026-09-01 16:58:01 -0700
committerMax Nanis2026-09-01 16:58:01 -0700
commit4e9e08718884b1c4394d16055ba3f30c790ef8d0 (patch)
treea8c0c40ac5ac92d90c7cdfdda31c34ddf1e62d79 /tests/test_postgres.py
parentfdfd6dbd2b71b0cf11741915620dca181fdc7bb0 (diff)
downloadgeneralresearch-4e9e08718884b1c4394d16055ba3f30c790ef8d0.tar.gz
generalresearch-4e9e08718884b1c4394d16055ba3f30c790ef8d0.zip
Latest state for Django Migrations / Discussion
Diffstat (limited to 'tests/test_postgres.py')
-rw-r--r--tests/test_postgres.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/test_postgres.py b/tests/test_postgres.py
index c53f644..9794321 100644
--- a/tests/test_postgres.py
+++ b/tests/test_postgres.py
@@ -68,4 +68,15 @@ class TestPostgresDjangoCreation:
WHERE table_schema = 'public';
""")
assert len(res) == 1
- assert res[0]["count"] == 56
+ assert res[0]["count"] == 57
+
+ def test_django_tables_with_gr(
+ self, thl_web_rw: PostgresConfig, gr_db: PostgresConfig
+ ):
+ res = thl_web_rw.execute_sql_query(query="""
+ SELECT COUNT(*)
+ FROM information_schema.tables
+ WHERE table_schema = 'public';
+ """)
+ assert len(res) == 1
+ assert res[0]["count"] > 57