In the test_it_sends_link testcase, explicitly set the USE_PAYMENTS setting. This way tests work regardless of what's in the environment variable or local_settings.py file.

This commit is contained in:
Pēteris Caune 2020-08-05 17:35:37 +03:00
parent 96d458fcf3
commit f131123e0e
No known key found for this signature in database
GPG Key ID: E28D7679E9A9EDE2

View File

@ -8,6 +8,7 @@ from django.conf import settings
class SignupTestCase(TestCase): class SignupTestCase(TestCase):
@override_settings(USE_PAYMENTS=False)
def test_it_sends_link(self): def test_it_sends_link(self):
form = {"identity": "alice@example.org"} form = {"identity": "alice@example.org"}