Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
8f919bdb
Unverified
Commit
8f919bdb
authored
4 years ago
by
Usama Sadiq
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #26303 from edx/amnesty-status
Applied pylint-amnesty to status
parents
c4e21bf7
3ce03896
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
common/djangoapps/status/models.py
+2
-2
2 additions, 2 deletions
common/djangoapps/status/models.py
common/djangoapps/status/tests.py
+1
-1
1 addition, 1 deletion
common/djangoapps/status/tests.py
with
3 additions
and
3 deletions
common/djangoapps/status/models.py
+
2
−
2
View file @
8f919bdb
...
...
@@ -26,9 +26,9 @@ class GlobalStatusMessage(ConfigurationModel):
blank
=
True
,
null
=
True
,
help_text
=
u
'
<p>The contents of this field will be displayed as a warning banner on all views.</p>
'
u
'
<p>To override the banner message for a specific course, refer to the Course Message configuration.
'
u
'
<p>To override the banner message for a specific course, refer to the Course Message configuration.
'
# lint-amnesty, pylint: disable=line-too-long
u
'
Course Messages will only work if the global status message is enabled, so if you only want to add
'
u
'
a banner to specific courses without adding a global status message, you should add a global status
'
u
'
a banner to specific courses without adding a global status message, you should add a global status
'
# lint-amnesty, pylint: disable=line-too-long
u
'
message with <strong>empty</strong> message text.</p>
'
u
'
<p>Finally, disable the global status message by adding another empty message with
"
enabled
"
'
u
'
unchecked.</p>
'
)
...
...
This diff is collapsed.
Click to expand it.
common/djangoapps/status/tests.py
+
1
−
1
View file @
8f919bdb
...
...
@@ -21,7 +21,7 @@ class TestStatus(TestCase):
"""
Test that the get_site_status_msg function does the right thing
"""
def
setUp
(
self
):
super
(
TestStatus
,
self
).
setUp
()
super
(
TestStatus
,
self
).
setUp
()
# lint-amnesty, pylint: disable=super-with-arguments
# Clear the cache between test runs.
cache
.
clear
()
self
.
course_key
=
CourseLocator
(
org
=
'
TestOrg
'
,
course
=
'
TestCourse
'
,
run
=
'
TestRun
'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment