Skip to content

Commit 2895a36

Browse files
committed
Clear items before inserting example data to avoid regex search matching a random ID
1 parent ec482f7 commit 2895a36

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pydatalab/tests/server/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,7 @@ def fixture_insert_default_equipment(default_equipment):
581581

582582
@pytest.fixture(scope="module", name="insert_example_items")
583583
def fixture_insert_example_items(example_items, real_mongo_client):
584+
real_mongo_client.get_database(TEST_DATABASE_NAME).items.delete_many({})
584585
real_mongo_client.get_database().items.insert_many(example_items)
585586

586587

0 commit comments

Comments
 (0)