File tree 1 file changed +1
-18
lines changed
metadata-ingestion/src/datahub/testing
1 file changed +1
-18
lines changed Original file line number Diff line number Diff line change 8
8
import yaml
9
9
from deepdiff import DeepDiff
10
10
from deepdiff .model import DiffLevel
11
- from deepdiff .operator import BaseOperator
12
11
from typing_extensions import Literal
13
12
14
13
ReportType = Literal [
@@ -59,27 +58,12 @@ def __repr__(self):
59
58
60
59
@dataclasses .dataclass
61
60
class DeltaInfo :
62
- """Information about an MCP used to construct a diff delta.
63
-
64
- In a separate class so it can be ignored by DeepDiff via MCPDeltaInfoOperator.
65
- """
61
+ """Information about an MCP used to construct a diff delta."""
66
62
67
63
idx : int # Location in list of MCEs in golden file
68
64
original : Dict [str , Any ] # Original json-serialized MCP
69
65
70
66
71
- class DeltaInfoOperator (BaseOperator ):
72
- """Warning: Doesn't seem to be working right now.
73
- Ignored via an ignore path as an extra layer of defense.
74
- """
75
-
76
- def __init__ (self ):
77
- super ().__init__ (types = [DeltaInfo ])
78
-
79
- def give_up_diffing (self , * args : Any , ** kwargs : Any ) -> bool :
80
- return True
81
-
82
-
83
67
AspectsByUrn = Dict [str , Dict [str , List [AspectForDiff ]]]
84
68
85
69
@@ -176,7 +160,6 @@ def create(
176
160
t2 = t2 ,
177
161
exclude_regex_paths = ignore_paths ,
178
162
ignore_order = True ,
179
- custom_operators = [DeltaInfoOperator ()],
180
163
)
181
164
if diff :
182
165
aspect_changes [urn ][aspect_name ] = MCPAspectDiff .create (diff )
You can’t perform that action at this time.
0 commit comments