-
Notifications
You must be signed in to change notification settings - Fork 192
added check for comment length #537
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,7 +103,7 @@ | |
"junction.base.context_processors.site_info", | ||
], | ||
|
||
'debug': DEBUG, | ||
'debug': DEBUG, # noqa | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't it requires a |
||
}, | ||
}, | ||
] | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,16 +11,16 @@ | |
DATABASES = { | ||
'default': { | ||
'ENGINE': 'django.db.backends.sqlite3', | ||
'NAME': os.path.join(ROOT_DIR, 'test.sqlite3'), | ||
'NAME': os.path.join(ROOT_DIR, 'test.sqlite3'), # noqa | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't it requires a |
||
} | ||
} | ||
|
||
TEMPLATE_CONTEXT_PROCESSORS += ( | ||
TEMPLATE_CONTEXT_PROCESSORS += ( # noqa | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't it requires a |
||
"django.core.context_processors.debug", | ||
) | ||
|
||
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' | ||
|
||
INSTALLED_APPS += ('django_extensions',) | ||
INSTALLED_APPS += ('django_extensions',) # noqa | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To fix this, you need to follow PEP8 guideline, which says there should be a space after comma in a tuple. You can remove the |
||
|
||
DEVICE_VERIFICATION_CODE = 11111 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ def test_reviewer_private_comment(self, settings, login, conferences, | |
data = {'comment': 'Test', 'private': True} | ||
|
||
response = client.post(url, data) | ||
|
||
print(response.url) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's remove the |
||
assert response.status_code == 302 | ||
assert response.url.endswith('#js-reviewers') | ||
|
||
|
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.
Please make 15 as a variable and this variable needs to configurable via the Django settings and must not be hard-coded into template.