diff --git a/course_discovery/apps/api/v1/tests/test_views/test_courses.py b/course_discovery/apps/api/v1/tests/test_views/test_courses.py index 6ce74eb0abf..b1afd8b86c2 100644 --- a/course_discovery/apps/api/v1/tests/test_views/test_courses.py +++ b/course_discovery/apps/api/v1/tests/test_views/test_courses.py @@ -370,7 +370,8 @@ def test_no_repeated_cache_calls_for_utm_calculation(self): }) as mocked_api_access_request: with override_switch('use_company_name_as_utm_source_value', True): url = reverse('api:v1:course-list') - self.client.get(url) + response = self.client.get(url) + assert response["count"] == 2 mocked_api_access_request.assert_called_once() @pytest.mark.skip(reason="https://github.com/openedx/course-discovery/issues/4431")