Skip to content

Commit 008e82d

Browse files
committed
tests: fix is_advent_calendar stubbing
1 parent 35e6953 commit 008e82d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test_user_loot_infos.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,10 @@ def test_journa_not_done_bonus_needed(self) -> None:
7373
now = datetime.now(pytz.timezone('Europe/Paris')).strftime('%Y-%m-%d')
7474
loot_infos_stub.bonus_when.strftime.return_value = now
7575

76-
with patch('pyZUnivers.user.UserLootInfos', return_value=loot_infos_stub):
76+
with (
77+
patch('pyZUnivers.user.UserLootInfos', return_value=loot_infos_stub),
78+
patch('pyZUnivers.user.is_advent_calendar', return_value=False)
79+
):
7780
result = pyZUnivers.User.get_checker('powaza')
7881

7982
self.assertEqual(result, {'journa': False, 'bonus': False, 'advent': None})

0 commit comments

Comments
 (0)