Browse Source

Fix logic bug in test_signup (#408)

Resolves #408 by fixing the test_signup logic bug introduced in 8c13457.
pull/409/head
Ronald Ip 4 years ago
committed by GitHub
parent
commit
c476f042ba
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      hc/accounts/tests/test_signup.py

+ 5
- 5
hc/accounts/tests/test_signup.py View File

@ -20,8 +20,8 @@ class SignupTestCase(TestCase):
# A profile should have been created # A profile should have been created
profile = Profile.objects.get() 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 # And email sent
self.assertEqual(len(mail.outbox), 1) self.assertEqual(len(mail.outbox), 1)
@ -42,7 +42,7 @@ class SignupTestCase(TestCase):
channel = Channel.objects.get() channel = Channel.objects.get()
self.assertEqual(channel.project, project) self.assertEqual(channel.project, project)
@override_settings(USE_PAYMENTS=False)
@override_settings(USE_PAYMENTS=True)
def test_it_sets_high_limits(self): def test_it_sets_high_limits(self):
form = {"identity": "[email protected]"} form = {"identity": "[email protected]"}
@ -50,8 +50,8 @@ class SignupTestCase(TestCase):
# A profile should have been created # A profile should have been created
profile = Profile.objects.get() 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) @override_settings(REGISTRATION_OPEN=False)
def test_it_obeys_registration_open(self): def test_it_obeys_registration_open(self):


Loading…
Cancel
Save