Skip to content

Commit

Permalink
test: add strict checks to the test-case
Browse files Browse the repository at this point in the history
  • Loading branch information
AfaqShuaib09 committed Oct 25, 2024
1 parent d164823 commit 13d2c28
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -284,13 +284,15 @@ def test_populate_executive_education_data_csv_with_new_variants_structure_chang
assert data_row["Start Date"] == future_variant["startDate"]
assert data_row["End Date"] == future_variant["endDate"]
assert data_row["Reg Close Date"] == future_variant["finalRegCloseDate"]
assert data_row["Publish Date"] == future_variant["startDate"]
assert data_row["Restriction Type"] == "None"

data_row = next(reader)
assert data_row["Variant Id"] == custom_variant["id"]
assert data_row["Start Date"] == custom_variant["startDate"]
assert data_row["End Date"] == custom_variant["endDate"]
assert data_row["Reg Close Date"] == custom_variant["finalRegCloseDate"]
assert data_row["Publish Date"] == str(date.today().isoformat())
assert data_row["Restriction Type"] == "custom-b2b-enterprise"

@mock.patch('course_discovery.apps.course_metadata.utils.GetSmarterEnterpriseApiClient')
Expand Down

0 comments on commit 13d2c28

Please sign in to comment.