Skip to content

Commit

Permalink
fix: quality tests and migration errors
Browse files Browse the repository at this point in the history
  • Loading branch information
becdavid committed Dec 10, 2024
1 parent 3fb532d commit af93dbb
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 4 deletions.
7 changes: 6 additions & 1 deletion cms/djangoapps/contentstore/views/course.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@
from opaque_keys import InvalidKeyError
from opaque_keys.edx.keys import CourseKey
from opaque_keys.edx.locator import BlockUsageLocator
from organizations.api import add_organization_course, ensure_organization, get_course_organization, get_organization_institutions
from organizations.api import (
add_organization_course,
ensure_organization,
get_course_organization,
get_organization_institutions
)
from organizations.exceptions import InvalidOrganizationException
from rest_framework.exceptions import ValidationError

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Generated by Django 3.2.16 on 2024-12-10 18:37

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('course_overviews', '0027_auto_20240909_1523'),
('course_overviews', '0027_merge_20240123_1603'),
]

operations = [
]
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ def test_malformed_grading_policy(self):
course_overview = CourseOverview._create_or_update(course) # pylint: disable=protected-access
assert course_overview.lowest_passing_grade is None

@ddt.data((ModuleStoreEnum.Type.mongo, 5, 5), (ModuleStoreEnum.Type.split, 2, 2))
@ddt.data((ModuleStoreEnum.Type.mongo, 6, 6), (ModuleStoreEnum.Type.split, 2, 2))
@ddt.unpack
def test_versioning(self, modulestore_type, min_mongo_calls, max_mongo_calls):
"""
Expand Down
2 changes: 1 addition & 1 deletion requirements/edx/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1149,7 +1149,7 @@ zipp==3.8.0
# via -r ./requirements/edx/private.txt
-e git+https://github.com/CUCWD/[email protected]#egg=edx-organizations==6.11.1
# via -r ./requirements/edx/private.txt
-e git+https://github.com/CUCWD/[email protected]#egg=social-auth-backend-bigcommerce==0.1.0-maple.1
-e git+https://github.com/CUCWD/[email protected]#egg=social-auth-backend-bigcommerce==0.1.0
# via -r ./requirements/edx/private.txt
# -e git+https://github.com/CUCWD/[email protected]#egg=ora2==4.1.2
-e git+https://github.com/CUCWD/[email protected]#egg=custom-form-app==0.1
Expand Down
2 changes: 1 addition & 1 deletion requirements/edx/development.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1654,7 +1654,7 @@ zipp==3.8.0
# via -r ./requirements/edx/private.txt
-e git+https://github.com/CUCWD/[email protected]#egg=edx-organizations==6.11.1
# via -r ./requirements/edx/private.txt
-e git+https://github.com/CUCWD/[email protected]#egg=social-auth-backend-bigcommerce==0.1.0-maple.1
-e git+https://github.com/CUCWD/[email protected]#egg=social-auth-backend-bigcommerce==0.1.0
# via -r ./requirements/edx/private.txt
-e git+https://github.com/CUCWD/[email protected]#egg=ora2==4.1.2
# via -r ./requirements/edx/private.txt
Expand Down

0 comments on commit af93dbb

Please sign in to comment.