Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 25bd6ac

Browse files
committed
fix test
1 parent 344441c commit 25bd6ac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

entity/tests/sync_tests.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,14 +316,14 @@ def wrapped_super_entities(*args, **kwargs):
316316

317317
return _get_super_entities_by_ctype(*args, **kwargs)
318318

319-
# Sync the accounts, it will not have the updated active flag because it is fetched before it is changed
319+
# Sync the accounts
320320
with patch('entity.sync._get_super_entities_by_ctype', wraps=wrapped_super_entities):
321321
sync_entities(*accounts)
322322
account = Account.objects.get(email='[email protected]')
323323
entity = Entity.all_objects.get_for_obj(account)
324-
self.assertEqual(entity.is_active, True)
324+
self.assertEqual(entity.is_active, False)
325325

326-
# Fetch accounts and sync again
326+
# Fetch accounts and sync again - hits other block in wrapped function
327327
with patch('entity.sync._get_super_entities_by_ctype', wraps=wrapped_super_entities):
328328
accounts = Account.objects.all()
329329
sync_entities(*accounts)

0 commit comments

Comments
 (0)