Skip to content

Commit

Permalink
fix: removed unused variable from template context
Browse files Browse the repository at this point in the history
  • Loading branch information
tecoholic committed Jul 4, 2023
1 parent f3e30cb commit b9eb7c8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions enterprise/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1598,8 +1598,7 @@ def get_enterprise_course_enrollment_page(
'course_modes': course_modes,
'premium_modes': premium_modes,
'catalog': enterprise_catalog_uuid,
'hide_course_original_price': enterprise_customer.hide_course_original_price,
'hide_course_price_when_zero': enterprise_customer.hide_course_price_when_zero
'hide_course_original_price': enterprise_customer.hide_course_original_price
}
)

Expand Down
1 change: 0 additions & 1 deletion tests/test_enterprise/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,6 @@ def test_get_default_invite_key_expiration_date(self):
expected_expiration_date = current_time + timedelta(days=365)
self.assertEqual(expiration_date.date(), expected_expiration_date.date())


@ddt.data(True, False)
def test_hide_course_price_when_zero(self, hide_price):
customer = factories.EnterpriseCustomerFactory()
Expand Down

0 comments on commit b9eb7c8

Please sign in to comment.