@@ -12,12 +12,6 @@ def __init__(self, settings):
12
12
self .record_evs = False
13
13
self .variations = Variations (settings )
14
14
self .constants = Constants (settings )
15
- self .expected_variations = self .variations .expected_variations
16
- self .skipped_variations = self .variations .skipped_variations
17
- self .expected_constants = self .constants .expected_constants
18
- self .skipped_constants = self .constants .skipped_constants
19
-
20
-
21
15
22
16
def remove_verifed_key (self , key ):
23
17
reversed_bk = self .big_key [::- 1 ]
@@ -35,7 +29,7 @@ def record_variation(self, pre, post, var_details=None):
35
29
big_key = [str (itm ) for itm in self .big_key ]
36
30
full_path = "/" .join (big_key )
37
31
var_full_path = "/" .join ([itm for itm in self .big_key if not isinstance (itm , int )])
38
- if var_full_path in self .expected_variations or var_full_path in self .skipped_variations :
32
+ if var_full_path in self .variations . expected_variations or var_full_path in self . variations .skipped_variations :
39
33
if self .record_evs :
40
34
variation = {
41
35
"pre" : pre ,
@@ -44,8 +38,8 @@ def record_variation(self, pre, post, var_details=None):
44
38
}
45
39
self .big_diff .update ({full_path : variation })
46
40
elif (
47
- var_full_path not in self .expected_variations
48
- and var_full_path not in self .skipped_variations
41
+ var_full_path not in self .variations . expected_variations
42
+ and var_full_path not in self .variations . skipped_variations
49
43
):
50
44
variation = {"pre" : pre , "post" : post , "variation" : var_details or "" }
51
45
self .big_diff .update ({full_path : variation })
@@ -54,7 +48,7 @@ def record_constants(self, pre, post, var_details=None):
54
48
big_key = [str (itm ) for itm in self .big_key ]
55
49
full_path = "/" .join (big_key )
56
50
var_full_path = "/" .join ([itm for itm in self .big_key if not isinstance (itm , int )])
57
- if var_full_path in self .expected_constants or var_full_path in self .skipped_constants :
51
+ if var_full_path in self .constants . expected_constants or var_full_path in self . constants .skipped_constants :
58
52
if self .record_evs :
59
53
variation = {
60
54
"pre" : pre ,
@@ -63,8 +57,8 @@ def record_constants(self, pre, post, var_details=None):
63
57
}
64
58
self .big_constant .update ({full_path : variation })
65
59
elif (
66
- var_full_path not in self .expected_constants
67
- and var_full_path not in self .skipped_constants
60
+ var_full_path not in self .constants . expected_constants
61
+ and var_full_path not in self .constants . skipped_constants
68
62
):
69
63
variation = {"pre" : pre , "post" : post , "constant" : var_details or "" }
70
64
self .big_constant .update ({full_path : variation })
0 commit comments