Skip to content

Commit

Permalink
tests(sorting-hat): fix unittest with oid as index
Browse files Browse the repository at this point in the history
  • Loading branch information
dirodriguezm committed Jan 11, 2024
1 parent c3e5aa1 commit 6eba432
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sorting_hat_step/tests/unittest/test_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def test_oid_query(self):
aid = database.oid_query(self.mock_db, ["x", "y", "z"])
self.assertEqual(aid, 1)
self.mock_db.database["object"].find_one.assert_called_with(
{"oid": {"$in": ["x", "y", "z"]}}, {"_id": 1}
{"_id": {"$in": ["x", "y", "z"]}}, {"_id": 1}
)

def test_oid_query_with_no_elements(self):
Expand Down

0 comments on commit 6eba432

Please sign in to comment.