Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
annagav committed Aug 22, 2024
1 parent 9c955e1 commit c558d99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion courses/serializers/v2/courses_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def test_serialize_course_required_prerequisites(
"page": CoursePageSerializer(course.page).data,
"certificate_type": "Certificate of Completion",
"topics": [],
"availability": "dated",
"availability": "anytime",
"required_prerequisites": expected_required_prerequisites,
"duration": course.page.length,
"time_commitment": course.page.effort,
Expand Down
4 changes: 2 additions & 2 deletions courses/utils_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def test_get_unenrollable_courses():
assert unenrollable_course in unenrollable_courses
assert enrollable_course not in unenrollable_courses


@pytest.mark.django_db
def test_get_dated_courseruns():
"""
Test get_dated_courseruns
Expand Down Expand Up @@ -296,7 +296,7 @@ def test_get_dated_courseruns():
self_paced_courserun = CourseRunFactory.create(
course=self_paced_course,
live=True,
self_paced=True,
is_self_paced=True,
start_date=now,
enrollment_start=past_date,
enrollment_end=future_date,
Expand Down

0 comments on commit c558d99

Please sign in to comment.