Revert "refactor: upgrade django=2.2.23. Fileupload issue fixed."

This commit is contained in:
David Ormsbee
2021-05-17 16:33:36 -04:00
parent 2d8057f07d
commit 2376b3d124
6 changed files with 7 additions and 7 deletions

View File

@@ -23,7 +23,7 @@ from lms.djangoapps.badges.models import (
validate_badge_image
)
from lms.djangoapps.badges.tests.factories import BadgeAssertionFactory, BadgeClassFactory, RandomBadgeClassFactory
from lms.djangoapps.certificates.tests.test_models import TEST_DATA_ROOT, TEST_DATA_DIR
from lms.djangoapps.certificates.tests.test_models import TEST_DATA_ROOT
from xmodule.modulestore.tests.django_utils import ModuleStoreTestCase
from xmodule.modulestore.tests.factories import CourseFactory
@@ -32,7 +32,7 @@ def get_image(name):
"""
Get one of the test images from the test data directory.
"""
return ImageFile(open(f'{TEST_DATA_DIR}/badges/{name}.png', mode='rb')) # lint-amnesty, pylint: disable=bad-option-value, open-builtin
return ImageFile(open(TEST_DATA_ROOT / 'badges' / name + '.png', mode='rb')) # lint-amnesty, pylint: disable=bad-option-value, open-builtin
@override_settings(MEDIA_ROOT=TEST_DATA_ROOT)

View File

@@ -13,7 +13,7 @@
-c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt
# latest version breaks the tests.
django<2.3
django<2.2.21
# celery 5.0 has dropped python3.5 support.
celery<5.0

View File

@@ -290,7 +290,7 @@ django-webpack-loader==0.7.0
# -c requirements/edx/../constraints.txt
# -r requirements/edx/base.in
# edx-proctoring
django==2.2.23
django==2.2.20
# via
# -c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt
# -c requirements/edx/../constraints.txt

View File

@@ -365,7 +365,7 @@ django-webpack-loader==0.7.0
# -c requirements/edx/../constraints.txt
# -r requirements/edx/testing.txt
# edx-proctoring
django==2.2.23
django==2.2.20
# via
# -c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt
# -c requirements/edx/../constraints.txt

View File

@@ -1 +1 @@
django==2.2.23
django==2.2.20

View File

@@ -18,7 +18,7 @@ click==7.1.2
# code-annotations
code-annotations==1.1.1
# via -r requirements/edx/doc.in
django==2.2.23
django==2.2.20
# via
# -c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt
# -c requirements/edx/../constraints.txt