Skip to content

Commit

Permalink
add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaelicke committed Jan 25, 2024
1 parent 8133ebe commit 22894a4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions metacatalog/test/test_models_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ def delete_data(session, entry):
return entry.datasource is None


def check_dimension_names(entry: models.Entry):
# check that the datasource has the expected list of dimension names
names = entry.datasource.dimension_names

return names == ['tstamp', 'air_pressure']


@pytest.mark.depends(on=['add_find'], name='data_crud')
def test_data_crud_operations():
Expand Down Expand Up @@ -115,3 +121,4 @@ def test_data_crud_operations():
assert append_data(session, entry, new_chunk)
read_data(session, entry, all_data)
assert delete_data(session, entry)
assert check_dimension_names(entry)

0 comments on commit 22894a4

Please sign in to comment.