-
-
Notifications
You must be signed in to change notification settings - Fork 528
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Django2.2 #1228
Django2.2 #1228
Conversation
…nstead of Statment. TypeError: argument of type 'Statement' is not iterable
…ly" and a few other small fixes.
This reverts commit 704d1f1.
@@ -39,7 +39,7 @@ def test_empty_request(self): | |||
def test_invalid_data(self): | |||
"""invalid request data errors with code 400""" | |||
response = self.client.post( | |||
self.api_link, "false", content_type="application/json" | |||
self.api_link, {}, content_type="application/json" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test was explicitly checking if non-dict data is handled by rest framework.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
venv/misago/lib/python3.6/site-packages/django/forms/widgets.py:258:
return data.get(name)
E AttributeError: 'bool' object has no attribute 'get'
devproject/test_settings.py
Outdated
@@ -56,3 +56,15 @@ | |||
} | |||
|
|||
TEST_NAME = "travis_ci_test" | |||
|
|||
AUTH_PASSWORD_VALIDATORS = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AUTH_PASSWORD_VALIDATORS = [ | |
# Simplify password validation to ease writing test assertions | |
AUTH_PASSWORD_VALIDATORS = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you move this setting near the PASSWORD_HASHERS
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
No description provided.