Exemple #1
0
    def test_walking_suggestion_service_error(self, decide):
        WalkingSuggestionDecisionService.process_decision(self.decision)

        decision = WalkingSuggestionDecision.objects.get()
        self.assertFalse(decision.treated)
        self.assertFalse(decision.available)
        self.assertTrue(decision.unavailable_service_error)
Exemple #2
0
    def test_decision_not_to_treat(self, decide):
        WalkingSuggestionDecisionService.process_decision(self.decision)

        self.update_context.assert_called()
        decide.assert_called()
        self.send_message.assert_not_called()