Skip to content

Commit

Permalink
fix: pylint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
AfaqShuaib09 committed Sep 12, 2024
1 parent cec72b5 commit 5956a07
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def test_populate_product_catalog(self):
self.assertIn("Subjects Spanish", row)
self.assertIn("Marketing URL", row)
self.assertIn("Marketing Image", row)

def test_populate_product_catalog_for_courses_with_hidden_and_non_hidden_published_runs(self):
"""
Test populate_product_catalog command for course having hidden and non-hidden published runs
Expand Down Expand Up @@ -112,13 +112,13 @@ def test_populate_product_catalog_for_courses_with_hidden_and_non_hidden_publish
assert len(rows) == 1
matching_rows = [row for row in rows if row["UUID"] == str(self.courses[0].uuid.hex)]
self.assertEqual(len(matching_rows), 1)

matching_rows = [row for row in rows if row["UUID"] == str(self.courses[1].uuid.hex)]
self.assertEqual(
len(matching_rows), 0, "Courses having hidden published runs shouldn't be in the csv"
)
non_hidden_course_run = CourseRunFactory(

non_hidden_course_run = CourseRunFactory(
course=Course.objects.all()[1],
status=CourseRunStatus.Published,
hidden=False,
Expand Down

0 comments on commit 5956a07

Please sign in to comment.