@@ -94,7 +94,7 @@ def always_false(**kwargs):
94
94
},
95
95
# ref_keys_config
96
96
{
97
- str ( Indexer ("key1" ) ): {
97
+ Indexer ("key1" ): {
98
98
KEY_BIN_ON_OUT : "ts" ,
99
99
KEY_POST : None ,
100
100
"write_config" : {
@@ -105,9 +105,9 @@ def always_false(**kwargs):
105
105
},
106
106
},
107
107
# ref_agg_pd
108
- {str ( Indexer ("key1" ) ): {"agg_out" : ("val" , SUM )}},
108
+ {Indexer ("key1" ): {"agg_out" : ("val" , SUM )}},
109
109
# ref_filter_apps
110
- {NO_FILTER_ID : FilterApp ([str ( Indexer ("key1" ) )], "NA" )},
110
+ {NO_FILTER_ID : FilterApp ([Indexer ("key1" )], "NA" )},
111
111
),
112
112
(
113
113
# Test 2 /
@@ -161,7 +161,7 @@ def always_false(**kwargs):
161
161
},
162
162
# ref_keys_config
163
163
{
164
- str ( Indexer ("key1_some_default" ) ): {
164
+ Indexer ("key1_some_default" ): {
165
165
KEY_BIN_ON_OUT : "ts_dflt" ,
166
166
KEY_POST : always_false ,
167
167
"write_config" : {
@@ -171,7 +171,7 @@ def always_false(**kwargs):
171
171
KEY_DUPLICATES_ON : "ts_dflt" ,
172
172
},
173
173
},
174
- str ( Indexer ("key2_only_specific" ) ): {
174
+ Indexer ("key2_only_specific" ): {
175
175
KEY_BIN_ON_OUT : None ,
176
176
KEY_POST : None ,
177
177
"write_config" : {
@@ -181,7 +181,7 @@ def always_false(**kwargs):
181
181
KEY_DUPLICATES_ON : "ts_spec" ,
182
182
},
183
183
},
184
- str ( Indexer ("key3_only_default" ) ): {
184
+ Indexer ("key3_only_default" ): {
185
185
KEY_BIN_ON_OUT : "bin_out_spec" ,
186
186
KEY_POST : always_true ,
187
187
"write_config" : {
@@ -191,7 +191,7 @@ def always_false(**kwargs):
191
191
KEY_DUPLICATES_ON : "bin_out_spec" ,
192
192
},
193
193
},
194
- str ( Indexer ("key4_most_default" ) ): {
194
+ Indexer ("key4_most_default" ): {
195
195
KEY_BIN_ON_OUT : "ts_dflt" ,
196
196
KEY_POST : always_true ,
197
197
"write_config" : {
@@ -204,19 +204,19 @@ def always_false(**kwargs):
204
204
},
205
205
# ref_agg_pd
206
206
{
207
- str ( Indexer ("key1_some_default" ) ): {"out_spec" : ("in_spec" , FIRST )},
208
- str ( Indexer ("key2_only_specific" ) ): {"out_spec" : ("in_spec" , FIRST )},
209
- str ( Indexer ("key3_only_default" ) ): {"out_dflt" : ("in_dflt" , LAST )},
210
- str ( Indexer ("key4_most_default" ) ): {"out_dflt" : ("in_dflt" , LAST )},
207
+ Indexer ("key1_some_default" ): {"out_spec" : ("in_spec" , FIRST )},
208
+ Indexer ("key2_only_specific" ): {"out_spec" : ("in_spec" , FIRST )},
209
+ Indexer ("key3_only_default" ): {"out_dflt" : ("in_dflt" , LAST )},
210
+ Indexer ("key4_most_default" ): {"out_dflt" : ("in_dflt" , LAST )},
211
211
},
212
212
# ref_filter_apps
213
213
{
214
214
NO_FILTER_ID : FilterApp (
215
215
[
216
- str ( Indexer ("key1_some_default" ) ),
217
- str ( Indexer ("key2_only_specific" ) ),
218
- str ( Indexer ("key3_only_default" ) ),
219
- str ( Indexer ("key4_most_default" ) ),
216
+ Indexer ("key1_some_default" ),
217
+ Indexer ("key2_only_specific" ),
218
+ Indexer ("key3_only_default" ),
219
+ Indexer ("key4_most_default" ),
220
220
],
221
221
"NA" ,
222
222
),
@@ -280,7 +280,7 @@ def always_false(**kwargs):
280
280
},
281
281
# ref_keys_config
282
282
{
283
- str ( Indexer ("key1_some_default" ) ): {
283
+ Indexer ("key1_some_default" ): {
284
284
KEY_BIN_ON_OUT : "ts_dflt" ,
285
285
KEY_POST : always_false ,
286
286
"write_config" : {
@@ -290,7 +290,7 @@ def always_false(**kwargs):
290
290
KEY_DUPLICATES_ON : "ts_dflt" ,
291
291
},
292
292
},
293
- str ( Indexer ("key2_only_specific" ) ): {
293
+ Indexer ("key2_only_specific" ): {
294
294
KEY_BIN_ON_OUT : None ,
295
295
KEY_POST : None ,
296
296
"write_config" : {
@@ -300,7 +300,7 @@ def always_false(**kwargs):
300
300
KEY_DUPLICATES_ON : "ts_spec" ,
301
301
},
302
302
},
303
- str ( Indexer ("key3_only_default" ) ): {
303
+ Indexer ("key3_only_default" ): {
304
304
KEY_BIN_ON_OUT : "bin_out_spec" ,
305
305
KEY_POST : always_true ,
306
306
"write_config" : {
@@ -310,7 +310,7 @@ def always_false(**kwargs):
310
310
KEY_DUPLICATES_ON : "bin_out_spec" ,
311
311
},
312
312
},
313
- str ( Indexer ("key4_most_default" ) ): {
313
+ Indexer ("key4_most_default" ): {
314
314
KEY_BIN_ON_OUT : "ts_dflt" ,
315
315
KEY_POST : always_true ,
316
316
"write_config" : {
@@ -323,22 +323,22 @@ def always_false(**kwargs):
323
323
},
324
324
# ref_agg_pd
325
325
{
326
- str ( Indexer ("key1_some_default" ) ): {"out_spec" : ("in_spec" , FIRST )},
327
- str ( Indexer ("key2_only_specific" ) ): {"out_spec" : ("in_spec" , FIRST )},
328
- str ( Indexer ("key3_only_default" ) ): {"out_dflt" : ("in_dflt" , LAST )},
329
- str ( Indexer ("key4_most_default" ) ): {"out_dflt" : ("in_dflt" , LAST )},
326
+ Indexer ("key1_some_default" ): {"out_spec" : ("in_spec" , FIRST )},
327
+ Indexer ("key2_only_specific" ): {"out_spec" : ("in_spec" , FIRST )},
328
+ Indexer ("key3_only_default" ): {"out_dflt" : ("in_dflt" , LAST )},
329
+ Indexer ("key4_most_default" ): {"out_dflt" : ("in_dflt" , LAST )},
330
330
},
331
331
# ref_filter_apps
332
332
{
333
333
"filter1" : FilterApp (
334
334
[
335
- str ( Indexer ("key1_some_default" ) ),
336
- str ( Indexer ("key2_only_specific" ) ),
337
- str ( Indexer ("key3_only_default" ) ),
335
+ Indexer ("key1_some_default" ),
336
+ Indexer ("key2_only_specific" ),
337
+ Indexer ("key3_only_default" ),
338
338
],
339
339
"NA" ,
340
340
),
341
- "filter2" : FilterApp ([str ( Indexer ("key4_most_default" ) )], "NA" ),
341
+ "filter2" : FilterApp ([Indexer ("key4_most_default" )], "NA" ),
342
342
},
343
343
),
344
344
],
@@ -378,7 +378,6 @@ def test_aggstream_init(
378
378
assert getattr (res_grouper , attr ) == ref_grouper_attr [attr ]
379
379
for key , ref in ref_keys_config .items ():
380
380
del res_keys_config [key ]["seg_config" ]
381
- del res_keys_config [key ]["dirpath" ]
382
381
assert res_keys_config [key ] == ref
383
382
ref_agg_buffers = {
384
383
"agg_n_rows" : 0 ,
0 commit comments