Skip to content

Commit

Permalink
fix: more test and pylint quality
Browse files Browse the repository at this point in the history
  • Loading branch information
AfaqShuaib09 committed Sep 26, 2024
1 parent ee346d4 commit d7088c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def get_products(self, product_type, product_source):
queryset = queryset.filter(type__slug=CourseType.BOOTCAMP_2U)

if product_source:
queryset.filter(product_source__slug__in=product_source.split(','))
queryset = queryset.filter(product_source__slug__in=product_source.split(','))

queryset = queryset.annotate(
num_orgs=Count('authoring_organizations')
Expand All @@ -109,7 +109,7 @@ def get_products(self, product_type, product_source):
.select_related('partner', 'type', 'primary_subject_override', 'language_override')

if product_source:
queryset.filter(product_source__slug__in=product_source.split(','))
queryset = queryset.filter(product_source__slug__in=product_source.split(','))

queryset = queryset.annotate(
num_orgs=Count('authoring_organizations')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ def test_populate_product_catalog_with_degrees_having_overrides(self):
self.assertEqual(row["Title"], degree.title)
self.assertIn(degree.primary_subject_override.name, row["Subjects"])
self.assertEqual(row["Languages"], degree.language_override.code)

def test_populate_product_catalog_supports_multiple_product_sources(self):
"""
Test that the populate_product_catalog command supports multiple product sources.
Expand Down

0 comments on commit d7088c5

Please sign in to comment.