-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: django-4.2 upgrade --------- Co-authored-by: Salman Nawaz <[email protected]>
- Loading branch information
1 parent
f02f8aa
commit 8abd639
Showing
9 changed files
with
47 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,80 +1,85 @@ | ||
[tox] | ||
envlist = | ||
py38-celery{50}-django{32, 40}-drflatest | ||
quality, | ||
version_check, | ||
pii_check, | ||
translations | ||
envlist = | ||
py38-celery{50}-django{32,40,42}-drflatest | ||
quality, | ||
version_check, | ||
pii_check, | ||
translations-django{32, 42} | ||
|
||
[testenv] | ||
deps = | ||
deps = | ||
django32: Django>=3.2,<3.3 | ||
django40: Django>=4.0,<4.1 | ||
django42: Django>=4.2,<4.3 | ||
drflatest: djangorestframework | ||
celery50: -r{toxinidir}/requirements/celery50.txt | ||
-rrequirements/test.txt | ||
commands = | ||
commands = | ||
python -Wd -m pytest {posargs:-n 3} | ||
|
||
[testenv:js_tests] | ||
whitelist_externals = | ||
whitelist_externals = | ||
npm | ||
make | ||
commands = | ||
commands = | ||
npm install -g gulp-cli | ||
npm install | ||
make test-js | ||
|
||
[testenv:js_lint] | ||
whitelist_externals = | ||
whitelist_externals = | ||
npm | ||
make | ||
commands = | ||
commands = | ||
npm install -g gulp-cli | ||
npm install | ||
make lint-js | ||
|
||
[testenv:rst_validation] | ||
whitelist_externals = | ||
whitelist_externals = | ||
make | ||
deps = | ||
deps = | ||
-r{toxinidir}/requirements/quality.txt | ||
commands = | ||
commands = | ||
make quality-rst | ||
|
||
[testenv:quality] | ||
whitelist_externals = | ||
whitelist_externals = | ||
make | ||
rm | ||
touch | ||
deps = | ||
deps = | ||
-r{toxinidir}/requirements/quality.txt | ||
-r{toxinidir}/requirements/test.txt | ||
commands = | ||
commands = | ||
pylint edx_proctoring | ||
pycodestyle edx_proctoring | ||
isort --check-only --diff edx_proctoring manage.py setup.py | ||
|
||
[testenv:version_check] | ||
deps = | ||
deps = | ||
-r{toxinidir}/requirements/base.txt | ||
commands = | ||
commands = | ||
{toxinidir}/edx_proctoring/scripts/version_check.py | ||
|
||
[testenv:pii_check] | ||
whitelist_externals = | ||
whitelist_externals = | ||
make | ||
deps = | ||
deps = | ||
-r{toxinidir}/requirements/test.txt | ||
Django>=3.2,<3.3 | ||
commands = | ||
commands = | ||
make pii_check | ||
|
||
[testenv:translations] | ||
whitelist_externals = | ||
whitelist_externals = | ||
make | ||
deps = | ||
django32: Django>=3.2,<3.3 | ||
django42: Django>=4.2,<4.3 | ||
-rrequirements/test.txt | ||
commands = | ||
commands = | ||
sudo apt-get update | ||
sudo apt-get install --no-install-recommends -y gettext | ||
make validate_translations | ||
|