Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianMwangi21 committed Dec 3, 2024
1 parent 183e76f commit c7a4bcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/planning/commands/delete_spiked_items_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ async def insert(self, item_type, items):
await service.create(items)

async def get_assignments_count(self):
results = await self.assignment_service.find({"_id": {"$exists": 1}})
results = await self.assignment_service.find({"_id": {"$exists": 1}}, use_mongo=True)
return await results.count()

async def test_delete_spike_disabled(self):
Expand Down Expand Up @@ -295,7 +295,7 @@ async def test_planning_assignment_deletion(self):
# Map plannings to assignments
assignments = {}
for plan_id in ["p1", "p2", "p3", "p4"]:
planning = await self.planning_service.find_one(guid=plan_id, req=None)
planning = await self.planning_service.find_one_raw(guid=plan_id, req=None)
if planning:
assignments[plan_id] = planning["coverages"][0]["assigned_to"]["assignment_id"]

Expand Down

0 comments on commit c7a4bcf

Please sign in to comment.