Skip to content

Commit aeb8ba8

Browse files
committed
Add test for visit schema.
1 parent c4cf981 commit aeb8ba8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/test_pqserver.py

+7
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,12 @@ def lsstcomcamsim(request, astropy_tables, scope="module"):
109109
# Insert rows into the SQL table
110110
connection.execute(sql_table.insert(), rows)
111111

112+
with instance.engine.begin() as connection:
113+
connection.exec_driver_sql(
114+
"DROP VIEW IF EXISTS visit1;"
115+
" CREATE VIEW visit1 AS SELECT * FROM exposure;"
116+
)
117+
112118
yield TestClient(pqserver.app)
113119

114120

@@ -268,6 +274,7 @@ def test_schema_instrument(lsstcomcamsim):
268274
"exposure_flexdata_schema",
269275
"ccdexposure_flexdata",
270276
"ccdexposure_flexdata_schema",
277+
"visit1",
271278
]
272279
tables = [f"cdb_lsstcomcamsim.{t}" for t in tables]
273280
for t in tables:

0 commit comments

Comments
 (0)