Skip to content

Commit

Permalink
fix: update a test-case
Browse files Browse the repository at this point in the history
  • Loading branch information
AfaqShuaib09 committed Dec 5, 2024
1 parent 2dec561 commit 3c424e9
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -745,6 +745,7 @@ def test_ingest_flow_for_preexisting_course_having_run_in_legal_review_status(
key=self.COURSE_RUN_KEY,
type=self.course_run_type,
status=CourseRunStatus.LegalReview,
go_live_date=datetime.datetime.now(UTC) - datetime.timedelta(days=5),
draft=True,
fixed_price_usd=111.11
)
Expand Down Expand Up @@ -780,11 +781,11 @@ def test_ingest_flow_for_preexisting_course_having_run_in_legal_review_status(
assert Course.everything.count() == 2
assert CourseRun.everything.count() == 2

course = Course.everything.get(key=self.COURSE_KEY, partner=self.partner, draft=True)
course_run = CourseRun.everything.get(course=course, draft=True)
course = Course.everything.get(key=self.COURSE_KEY, partner=self.partner, draft=True)
course_run = CourseRun.everything.get(course=course, draft=True)

self._assert_course_data(course, {**self.BASE_EXPECTED_COURSE_DATA})
assert course_run.status == CourseRunStatus.Reviewed
self._assert_course_data(course, {**self.BASE_EXPECTED_COURSE_DATA})
assert course_run.status == CourseRunStatus.Published

@responses.activate
def test_active_slug(self, jwt_decode_patch): # pylint: disable=unused-argument
Expand Down

0 comments on commit 3c424e9

Please sign in to comment.