From ac80e4e8aee49ecd5f5902e1de12d936db039656 Mon Sep 17 00:00:00 2001 From: Prashant Makwana Date: Mon, 21 Oct 2024 21:04:27 +0000 Subject: [PATCH] chore: lint --- enterprise_catalog/apps/api/v2/tests/test_views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/enterprise_catalog/apps/api/v2/tests/test_views.py b/enterprise_catalog/apps/api/v2/tests/test_views.py index 2600880e..9ec17fbe 100644 --- a/enterprise_catalog/apps/api/v2/tests/test_views.py +++ b/enterprise_catalog/apps/api/v2/tests/test_views.py @@ -284,5 +284,7 @@ def test_get_content_metadata( results = response.data.get('results')[0] self.assertEqual(results.get('key'), 'edX+course') course_runs = results.get('course_runs') + # only one (unrestricted) run is returned self.assertEqual(len(course_runs), 1) + # contains only the unrestricted run self.assertEqual(course_runs[0].get('key'), 'course-v1:edX+course+run1')