Ejemplo n.º 1
0
    def setUp(self):
        super().setUp()
        container.notify_service.override(
            NotifyService())  # Prevent sending emails/SMS

        # Ensure that manitoba has sms enabled (test user is located in manitoba)
        manitoba = HealthcareProvince.objects.get(name="Manitoba")
        manitoba.sms_enabled = True
        manitoba.save()
Ejemplo n.º 2
0
    def setUp(self):
        super().setUp()
        container.notify_service.override(
            NotifyService())  # Prevent sending emails
        self.invite = Invitation.create(self.invited_email,
                                        inviter=self.user,
                                        sent=timezone.now())

        password = uuid4()
        self.new_user_data = {
            "email": self.invited_email,
            "province": "CDS",
            "name": "Chuck Norris",
            "phone_number": "+12125552368",
            "phone_number_confirmation": "+12125552368",
            "password1": password,
            "password2": password,
        }
Ejemplo n.º 3
0
 def setUp(self):
     container.notify_service.override(
         NotifyService())  # Prevent sending emails