Skip to content

Commit

Permalink
fix some tests (broken patches)
Browse files Browse the repository at this point in the history
  • Loading branch information
claasga committed Feb 10, 2025
1 parent ff2a454 commit c91e600
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def tearDown(self):
self.activate_logging()
self.activate_live_updates()

@patch.object(cn.ChannelNotifier, "_notify_group")
@patch("game.channel_notifications._notify_group")
def test_action_dispatcher(self, notify_group_mock):
action_instance = ActionInstanceFactory(patient_instance=PatientFactory())
action_instance.current_state = ActionInstanceStateFactory(
Expand All @@ -30,7 +30,7 @@ def test_action_dispatcher(self, notify_group_mock):

self.assertEqual(notify_group_mock.call_count, previous_function_calls + 1)

@patch.object(cn.ChannelNotifier, "_notify_group")
@patch("game.channel_notifications._notify_group")
def test_patient_dispatcher(self, notify_group_mock):
patient_instance = PatientFactory()
previous_function_calls = notify_group_mock.call_count
Expand Down
2 changes: 1 addition & 1 deletion backend/dps_training_k/game/tests/test_log_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


class LogRuleTestCase(TestUtilsMixin, TestCase):
@patch("game.templmon.log_rule.LogRuleRunner.receive_log_entry")
@patch("game.templmon.rule_runner.RuleRunner.receive_log_entry")
def test_creation(self, received_log):
test_rule_str = """ (personnel_count <- CNT personnel_id;patient_id
(NOT unassigned_personnel(personnel_id))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def test_assigning_resources(self):
@patch(
"game.channel_notifications.MaterialInstanceDispatcher._notify_exercise_update"
)
@patch("game.channel_notifications.MaterialInstanceDispatcher._notify_group")
@patch("game.channel_notifications._notify_group")
def test_channel_notifications_being_send(
self, _notify_group, _notify_exercise_update
):
Expand Down

0 comments on commit c91e600

Please sign in to comment.