Skip to content

Commit

Permalink
Add test for visit schema.
Browse files Browse the repository at this point in the history
  • Loading branch information
ktlim committed Nov 5, 2024
1 parent b530fd4 commit e6fa7f7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_pqserver.py
Original file line number Diff line number Diff line change
@@ -103,6 +103,9 @@ def lsstcomcamsim(request, astropy_tables, scope="module"):
# Insert rows into the SQL table
connection.execute(sql_table.insert(), rows)

with instance.engine.begin() as connection:
connection.exec_driver_sql("CREATE VIEW cdb_lsstcomcamsim.visit1 AS SELECT * FROM cdb_lsstcomcamsim.exposure;")

Check failure on line 107 in tests/test_pqserver.py

GitHub Actions / call-workflow / lint

E501

line too long (123 > 110 characters)

pqserver.engine = instance.engine
pqserver.instrument_tables = pqserver.InstrumentTables()

@@ -266,6 +269,7 @@ def test_schema_instrument(lsstcomcamsim):
"exposure_flexdata_schema",
"ccdexposure_flexdata",
"ccdexposure_flexdata_schema",
"visit1",
]
tables = [f"cdb_lsstcomcamsim.{t}" for t in tables]
for t in tables:

0 comments on commit e6fa7f7

Please sign in to comment.