From 61661d6571aed8b461d41935ad1e3c11b810b61c Mon Sep 17 00:00:00 2001 From: Ali Nawaz Date: Fri, 11 Oct 2024 18:02:18 +0500 Subject: [PATCH] test: improvements --- course_discovery/apps/api/v1/tests/test_views/test_courses.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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")