-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Labels
P1Issues that are both high impact and urgentIssues that are both high impact and urgentbugSomething isn't workingSomething isn't working
Description
What did you expect?
Consistency when running tests locally and in CI
What actually happened?
When running python3 manage.py test locally in WSL, it runs all 33 tests but FAILED (failures=1, errors=6)
The same tests are all passing in CircleCI.
Impact
High
Urgency
Now
What browsers are you seeing the problem on?
No response
What operating system are you using?
No response
Relevant log output
(venv) sam@TheChosenPC:~/gz/web$ python3 manage.py test
Creating test database for alias 'default'...
System check identified no issues (0 silenced).
..................EEEEEEF........
======================================================================
ERROR: test_donation_is_required_to_be_a_number (memberships.tests.test_registration_form.RegisterFormTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/sam/gz/web/memberships/tests/test_registration_form.py", line 44, in test_donation_is_required_to_be_a_number
response = self.client.post(
File "/home/sam/.local/lib/python3.8/site-packages/django/test/client.py", line 751, in post
response = super().post(path, data=data, content_type=content_type, secure=secure, **extra)
File "/home/sam/.local/lib/python3.8/site-packages/django/test/client.py", line 405, in post
post_data = self._encode_data(data, content_type)
File "/home/sam/.local/lib/python3.8/site-packages/django/test/client.py", line 364, in _encode_data
return encode_multipart(BOUNDARY, data)
File "/home/sam/.local/lib/python3.8/site-packages/django/test/client.py", line 247, in encode_multipart
raise TypeError(
TypeError: Cannot encode None for key 'password' as POST data. Did you mean to pass an empty string or omit the value?
======================================================================
ERROR: test_existing_member_cannot_reregister (memberships.tests.test_registration_form.RegisterFormTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/sam/gz/web/memberships/tests/test_registration_form.py", line 141, in test_existing_member_cannot_reregister
response = self.client.post(
File "/home/sam/.local/lib/python3.8/site-packages/django/test/client.py", line 751, in post
response = super().post(path, data=data, content_type=content_type, secure=secure, **extra)
File "/home/sam/.local/lib/python3.8/site-packages/django/test/client.py", line 405, in post
post_data = self._encode_data(data, content_type)
File "/home/sam/.local/lib/python3.8/site-packages/django/test/client.py", line 364, in _encode_data
return encode_multipart(BOUNDARY, data)
File "/home/sam/.local/lib/python3.8/site-packages/django/test/client.py", line 247, in encode_multipart
raise TypeError(
TypeError: Cannot encode None for key 'password' as POST data. Did you mean to pass an empty string or omit the value?
======================================================================
ERROR: test_member_is_logged_in_after_registration (memberships.tests.test_registration_form.RegisterFormTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/sam/gz/web/memberships/tests/test_registration_form.py", line 60, in test_member_is_logged_in_after_registration
response = self.client.post(
File "/home/sam/.local/lib/python3.8/site-packages/django/test/client.py", line 751, in post
response = super().post(path, data=data, content_type=content_type, secure=secure, **extra)
File "/home/sam/.local/lib/python3.8/site-packages/django/test/client.py", line 405, in post
post_data = self._encode_data(data, content_type)
File "/home/sam/.local/lib/python3.8/site-packages/django/test/client.py", line 364, in _encode_data
return encode_multipart(BOUNDARY, data)
File "/home/sam/.local/lib/python3.8/site-packages/django/test/client.py", line 247, in encode_multipart
raise TypeError(
TypeError: Cannot encode None for key 'password' as POST data. Did you mean to pass an empty string or omit the value?
======================================================================
ERROR: test_member_is_redirected_to_confirm_page_with_donation_when_provided (memberships.tests.test_registration_form.RegisterFormTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/sam/gz/web/memberships/tests/test_registration_form.py", line 78, in test_member_is_redirected_to_confirm_page_with_donation_when_provided
response = self.client.post(
File "/home/sam/.local/lib/python3.8/site-packages/django/test/client.py", line 751, in post
response = super().post(path, data=data, content_type=content_type, secure=secure, **extra)
File "/home/sam/.local/lib/python3.8/site-packages/django/test/client.py", line 405, in post
post_data = self._encode_data(data, content_type)
File "/home/sam/.local/lib/python3.8/site-packages/django/test/client.py", line 364, in _encode_data
return encode_multipart(BOUNDARY, data)
File "/home/sam/.local/lib/python3.8/site-packages/django/test/client.py", line 247, in encode_multipart
raise TypeError(
TypeError: Cannot encode None for key 'password' as POST data. Did you mean to pass an empty string or omit the value?
======================================================================
ERROR: test_member_is_redirected_to_confirm_page_without_donation_when_not_provided (memberships.tests.test_registration_form.RegisterFormTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/sam/gz/web/memberships/tests/test_registration_form.py", line 96, in test_member_is_redirected_to_confirm_page_without_donation_when_not_provided
response = self.client.post(
File "/home/sam/.local/lib/python3.8/site-packages/django/test/client.py", line 751, in post
response = super().post(path, data=data, content_type=content_type, secure=secure, **extra)
File "/home/sam/.local/lib/python3.8/site-packages/django/test/client.py", line 405, in post
post_data = self._encode_data(data, content_type)
File "/home/sam/.local/lib/python3.8/site-packages/django/test/client.py", line 364, in _encode_data
return encode_multipart(BOUNDARY, data)
File "/home/sam/.local/lib/python3.8/site-packages/django/test/client.py", line 247, in encode_multipart
raise TypeError(
TypeError: Cannot encode None for key 'password' as POST data. Did you mean to pass an empty string or omit the value?
======================================================================
ERROR: test_registration_rejected_on_short_common_passwords (memberships.tests.test_registration_form.RegisterFormTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/sam/gz/web/memberships/tests/test_registration_form.py", line 111, in test_registration_rejected_on_short_common_passwords
response = self.client.post(
File "/home/sam/.local/lib/python3.8/site-packages/django/test/client.py", line 751, in post
response = super().post(path, data=data, content_type=content_type, secure=secure, **extra)
File "/home/sam/.local/lib/python3.8/site-packages/django/test/client.py", line 405, in post
post_data = self._encode_data(data, content_type)
File "/home/sam/.local/lib/python3.8/site-packages/django/test/client.py", line 364, in _encode_data
return encode_multipart(BOUNDARY, data)
File "/home/sam/.local/lib/python3.8/site-packages/django/test/client.py", line 247, in encode_multipart
raise TypeError(
TypeError: Cannot encode None for key 'password' as POST data. Did you mean to pass an empty string or omit the value?
======================================================================
FAIL: test_signed_in_users_cannot_register (memberships.tests.test_registration_form.RegisterFormTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/sam/gz/web/memberships/tests/test_registration_form.py", line 30, in test_signed_in_users_cannot_register
self.assertEqual(response.status_code, 302)
AssertionError: 200 != 302
----------------------------------------------------------------------
Ran 33 tests in 16.276s
FAILED (failures=1, errors=6)
Destroying test database for alias 'default'...Code of Conduct
- I agree to follow this project's Code of Conduct
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P1Issues that are both high impact and urgentIssues that are both high impact and urgentbugSomething isn't workingSomething isn't working