From c476f042baebc1c0669e83d4d9b6847f8c416522 Mon Sep 17 00:00:00 2001 From: Ronald Ip Date: Wed, 5 Aug 2020 22:27:44 +0800 Subject: [PATCH] Fix logic bug in test_signup (#408) Resolves #408 by fixing the test_signup logic bug introduced in 8c13457. --- hc/accounts/tests/test_signup.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/hc/accounts/tests/test_signup.py b/hc/accounts/tests/test_signup.py index 07aacc7d..a2379ce9 100644 --- a/hc/accounts/tests/test_signup.py +++ b/hc/accounts/tests/test_signup.py @@ -20,8 +20,8 @@ class SignupTestCase(TestCase): # A profile should have been created profile = Profile.objects.get() - self.assertEqual(profile.sms_limit, 5) - self.assertEqual(profile.call_limit, 0) + self.assertEqual(profile.sms_limit, 500) + self.assertEqual(profile.call_limit, 500) # And email sent self.assertEqual(len(mail.outbox), 1) @@ -42,7 +42,7 @@ class SignupTestCase(TestCase): channel = Channel.objects.get() self.assertEqual(channel.project, project) - @override_settings(USE_PAYMENTS=False) + @override_settings(USE_PAYMENTS=True) def test_it_sets_high_limits(self): form = {"identity": "alice@example.org"} @@ -50,8 +50,8 @@ class SignupTestCase(TestCase): # A profile should have been created profile = Profile.objects.get() - self.assertEqual(profile.sms_limit, 500) - self.assertEqual(profile.call_limit, 500) + self.assertEqual(profile.sms_limit, 5) + self.assertEqual(profile.call_limit, 0) @override_settings(REGISTRATION_OPEN=False) def test_it_obeys_registration_open(self):