Skip to content

Commit

Permalink
Fix index tests, had drifted out of date.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielballan committed Mar 29, 2024
1 parent e5f4b84 commit 5217103
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions suitcase/mongo_normalized/tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,21 @@ def test_index_creation(db_factory):
assert indexes["resource_1"]

indexes = metadatastore_db.run_start.index_information()
assert len(indexes.keys()) == 6
assert len(indexes.keys()) == 10
for index_name in [
'_id_',
'uid_1',
'scan_id_1',
'scan_id_-1__id_-1',
'time_1__id_-1',
'time_-1__id_-1',
'time_-1_scan_id_-1',
'$**_text',
'data_session_1',
'data_groups_1',
]:
assert index_name in indexes
assert indexes["uid_1"]["unique"]
assert indexes["time_-1_scan_id_-1"]
assert indexes["$**_text"]
assert indexes["data_session_1"]
assert indexes["data_groups_1"]

indexes = metadatastore_db.run_stop.index_information()
assert len(indexes.keys()) == 5
Expand Down

0 comments on commit 5217103

Please sign in to comment.