44from data_algebra .shift_pipe_action import ShiftPipeAction
55from data_algebra .cdata import pivot_rowrecs_to_blocks
66from data_algebra .data_ops import descr , ConvertRecordsNode , ViewRepresentation
7- import pytest
87
98
109def test_shift_pipe_action_1 ():
@@ -16,21 +15,21 @@ def __init__(self, nm: str) -> None:
1615 ShiftPipeAction .__init__ (self )
1716 self .nm = nm
1817
19- def act_on (self , b ):
20- return f"{ self } .act_on({ b } )"
18+ def act_on (self , b , * , correct_ordered_first_call : bool = False ):
19+ return f"{ self } .act_on({ b } , correct_ordered_first_call= { correct_ordered_first_call } )"
2120
2221 def __str__ (self ) -> str :
2322 return self .nm
2423
2524 a = T1 ("a" )
2625 b = T1 ("b" )
27- assert (a >> b ) == "b.act_on(a)"
28- assert (b >> a ) == "a.act_on(b)"
29- assert (7 >> a ) == "a.act_on(7)"
30- assert (a >> 7 ) == "a.act_on(7)"
26+ assert (a >> b ) == "b.act_on(a, correct_ordered_first_call=True )"
27+ assert (b >> a ) == "a.act_on(b, correct_ordered_first_call=True )"
28+ assert (7 >> a ) == "a.act_on(7, correct_ordered_first_call=True )"
29+ assert (a >> 7 ) == "a.act_on(7, correct_ordered_first_call=False )"
3130
3231
33- def test_shift_pipe_action_rm_data ():
32+ def test_shift_pipe_action_mp_ops_data ():
3433 mp = pivot_rowrecs_to_blocks (
3534 attribute_key_column = "curve" ,
3635 attribute_value_column = "effect_size" ,
0 commit comments