Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit 7a2436a

Browse files
update mock
1 parent 971938e commit 7a2436a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/public/v2/tests/test_api_pull_viewset.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,8 @@ def test_pull_with_valid_super_token(self):
308308
"patch": None,
309309
}
310310

311-
@patch("services.comparison.ComparisonReport")
312-
@patch("compare.models.CommitComparison.objects.filter")
311+
@patch("api.public.v2.pull.serializers.ComparisonReport")
312+
@patch("api.public.v2.pull.serializers.CommitComparison.objects.filter")
313313
def test_retrieve_with_patch_coverage(self, mock_cc_filter, mock_comparison_report):
314314
mock_cc_instance = MagicMock(is_processed=True)
315315
mock_cc_filter.return_value.select_related.return_value.first.return_value = (

0 commit comments

Comments
 (0)