File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ def contain_subset(expected, actual):
12
12
actual_is_dict = issubclass (t_actual , dict )
13
13
expected_is_dict = issubclass (t_expected , dict )
14
14
both_dicts = actual_is_dict and expected_is_dict
15
- if not ( both_dicts ) and not (
15
+ if not both_dicts and not (
16
16
issubclass (t_actual , t_expected ) or issubclass (t_expected , t_actual )
17
17
):
18
18
return False
@@ -22,8 +22,9 @@ def contain_subset(expected, actual):
22
22
return False
23
23
if isinstance (expected , list ):
24
24
aa = actual [:]
25
- return all ([any ([contain_subset (exp , act ) for act in aa ]) for exp in expected ])
26
- for key in expected .keys (): # type: ignore
25
+ return all (any (contain_subset (exp , act ) for act in aa )
26
+ for exp in expected )
27
+ for key in expected : # type: ignore
27
28
eo = expected [key ]
28
29
ao = actual .get (key )
29
30
if isinstance (eo , obj ) and eo is not None and ao is not None :
You can’t perform that action at this time.
0 commit comments