@@ -113,6 +113,7 @@ def test_get_course_detail_endpoint(client, url):
113113 )
114114
115115
116+ @pytest .mark .skip_nplusone_check
116117@pytest .mark .parametrize (
117118 "url" ,
118119 [
@@ -139,6 +140,7 @@ def test_get_course_content_files_endpoint(client, url):
139140 assert resp .data .get ("results" )[idx ]["id" ] == content_file .id
140141
141142
143+ @pytest .mark .skip_nplusone_check
142144@pytest .mark .parametrize (
143145 ("reverse_url" , "expected_url" ),
144146 [
@@ -264,6 +266,7 @@ def test_no_excess_offeror_queries(client, django_assert_num_queries, offeror_co
264266 assert result ["channel_url" ] is not None
265267
266268
269+ @pytest .mark .skip_nplusone_check
267270@pytest .mark .parametrize (
268271 "user_role" ,
269272 [
@@ -311,6 +314,7 @@ def test_list_content_files_list_endpoint(client, user_role, django_user_model):
311314 assert result .get ("content" ) is None
312315
313316
317+ @pytest .mark .skip_nplusone_check
314318def test_list_content_files_list_endpoint_with_no_runs (client ):
315319 """Test ContentFile list endpoint returns results even without associated runs"""
316320 course = CourseFactory .create ()
@@ -330,6 +334,7 @@ def test_list_content_files_list_endpoint_with_no_runs(client):
330334 assert result ["id" ] in content_file_ids
331335
332336
337+ @pytest .mark .skip_nplusone_check
333338def test_list_content_files_list_filtered (client ):
334339 """Test ContentFile list endpoint"""
335340 course_1 = CourseFactory .create ()
@@ -505,6 +510,7 @@ def test_get_podcast_episode_detail_endpoint(client, url):
505510 )
506511
507512
513+ @pytest .mark .skip_nplusone_check
508514@pytest .mark .parametrize (
509515 "url" , ["lr:v1:learning_resource_items_api-list" , "lr:v1:podcast_items_api-list" ]
510516)
@@ -836,6 +842,7 @@ def test_offerors_detail_endpoint(client):
836842 assert resp .data == LearningResourceOfferorDetailSerializer (instance = offeror ).data
837843
838844
845+ @pytest .mark .skip_nplusone_check
839846@pytest .mark .parametrize (
840847 ("url" , "params" ),
841848 [
@@ -879,6 +886,7 @@ def test_get_video_playlist_detail_endpoint(client, url):
879886 )
880887
881888
889+ @pytest .mark .skip_nplusone_check
882890@pytest .mark .parametrize (
883891 "url" ,
884892 ["lr:v1:learning_resource_items_api-list" , "lr:v1:video_playlist_items_api-list" ],
@@ -923,6 +931,7 @@ def test_get_video_playlist_items_endpoint(client, url):
923931 )
924932
925933
934+ @pytest .mark .skip_nplusone_check
926935@pytest .mark .parametrize (
927936 ("url" , "params" ),
928937 [
@@ -948,6 +957,7 @@ def test_list_video_endpoint(client, url, params):
948957 )
949958
950959
960+ @pytest .mark .skip_nplusone_check
951961@pytest .mark .parametrize (
952962 ("url" , "params" ),
953963 [
@@ -1228,6 +1238,7 @@ def test_similar_resources_endpoint_ignores_opensearch_published(mocker, client)
12281238 assert len (response_ids ) == 4
12291239
12301240
1241+ @pytest .mark .skip_nplusone_check
12311242def test_vector_similar_resources_endpoint_does_not_return_self (mocker , client ):
12321243 """Test vector based similar resources endpoint does not return initial id"""
12331244 from learning_resources .models import LearningResource
@@ -1298,6 +1309,7 @@ def test_vector_similar_resources_endpoint_only_returns_published(mocker, client
12981309 assert len (response_ids ) == 1
12991310
13001311
1312+ @pytest .mark .skip_nplusone_check
13011313def test_learning_resources_display_info_list_view (mocker , client ):
13021314 """Test learning_resources_display_info_list_view returns expected results"""
13031315 from learning_resources .models import LearningResource
0 commit comments