Ned Batchelder
12765a7a59
refactor(test): use @skip_unless_lms uniformly
2023-02-01 13:52:26 -08:00
Awais Qureshi
6c22e84faa
BOM-2375
...
Run Pyupgrade on status folder.
2021-02-22 21:26:56 +05:00
Aarif
7dfd6edd23
replaced unittest assertions pytest assertions ( #26524 )
2021-02-18 18:08:23 +05:00
Jawayria
3ce03896af
Applied pylint-amnesty to status
2021-02-02 13:38:45 +05:00
Feanil Patel
9cf2f9f298
Run 2to3 -f future . -w
...
This will remove imports from __future__ that are no longer needed.
https://docs.python.org/3.5/library/2to3.html#2to3fixer-future
2019-12-30 10:35:30 -05:00
Anthony Wee
489c78dfa7
INCR-132: Run python-modernize on common/djangoapps/status ( #20450 )
...
* INCR-132: Run python-modernize on common/djangoapps/status
* isort
* isort migrations
2019-05-13 13:00:01 -04:00
bmedx
d3e6836d9e
Fixes to common/openedx tests that reference apps CMS doesn't use
2017-11-22 15:46:06 -05:00
Andy Armstrong
93235d118d
Reorder imports using isort (except lms and cms)
2017-05-30 16:04:54 -04:00
Diana Huang
82eb1f6b74
Make status use ConfigurationModel instead.
2015-08-11 17:51:39 -04:00
Ned Batchelder
78e9445aa1
Add super() calls to setUp/tearDown that are missing them
...
Also, I replaced a number of tearDown methods with addCleanup instead.
And also remove some unneeded patch.stopall() calls.
2015-05-14 18:14:21 -04:00
Adam Palay
882eab4bc9
cache site status message for 5 minutes (TNL-1614)
2015-03-11 14:28:19 -04:00
stv
5a69feadeb
Fix PEP8: E123 closing bracket does not match
...
indentation of opening bracket's line
2014-11-24 20:46:44 -05:00
stv
fb9f324f2f
Fix PEP8: E303 too many blank lines
2014-11-10 11:00:14 -08:00
Calen Pennington
6b64b4214f
Make relative imports explicitly relative
2013-03-15 11:23:22 -04:00
Ned Batchelder
aa2d0ecaf2
We no longer need override_settings, Django has a better one.
2013-02-11 17:06:35 -05:00
Victor Shnayder
bcf835532b
Pass course_id instead of course to get_site_status_msg
...
* makes testing easier -- don't need course objects
2012-10-08 14:06:58 -04:00
Victor Shnayder
ddcd166b72
make tests pass without LMS settings
2012-10-07 23:09:26 -04:00
Victor Shnayder
9e43664498
Add support for per-course site status.
...
Now looks for a status_message.json file, looks for 'global' and ${course.id} keys. Return any global message and any course-specific message, joined by <br>.
fab files need to be updated to use this new format (new filename, possibly also help manage per-course messages, or at least test for valid json)
2012-10-07 23:09:26 -04:00