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

Commit 140a0ca

Browse files
Update mock
1 parent bf36b54 commit 140a0ca

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

graphql_api/tests/test_impacted_file.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import hashlib
2-
from dataclasses import dataclass
2+
from dataclasses import dataclass, field
3+
from typing import Callable
34
from unittest.mock import PropertyMock, patch
45

56
from django.test import TransactionTestCase
@@ -211,6 +212,7 @@
211212
class MockSegment:
212213
has_diff_changes: bool = False
213214
has_unintended_changes: bool = False
215+
remove_unintended_changes: Callable[[], None] = field(default=lambda: None)
214216

215217

216218
class MockFileComparison(object):

0 commit comments

Comments
 (0)