@@ -658,11 +658,6 @@ def test_lazyexpr(auth_client):
658
658
assert lxinfo ["expression" ] == expression
659
659
assert lxinfo ["operands" ] == operands
660
660
661
- # tempexp = re.sub(
662
- # r"(?<=\s)o0|(?<=\()o0", lxinfo["operands"]["o0"], lxinfo["expression"]
663
- # ) # ds -> o0 automatically
664
- # assert tempexp == f"({re.sub(r'ds', operands['ds'], expression)})"
665
-
666
661
# Check result data.
667
662
a = auth_client .fetch (oppt )
668
663
b = auth_client .fetch (lxpath )
@@ -728,17 +723,6 @@ def test_expr_from_expr(auth_client):
728
723
assert lxinfo ["operands" ] == operands
729
724
assert lxinfo ["expression" ] == expression
730
725
731
- # tempexp = re.sub(
732
- # r"(?<=\s)o0|(?<=\()o0", lxinfo["operands"]["o0"], lxinfo["expression"]
733
- # ) # ds -> o0 automatically
734
- # assert tempexp == f"({re.sub(r'ds', operands['ds'], expression)})"
735
-
736
- # tempexp = lxinfo2["expression"]
737
- # for i, (_op, f) in enumerate(lxinfo2["operands"].items()):
738
- # tempexp = re.sub(rf"(?<=\s)o{i}|(?<=\()o{i}", f, tempexp)
739
- # step1 = f"({re.sub(r'ds', f'({expression})', expression2)})"
740
- # step2 = f"{re.sub(r'ds', operands['ds'], step1)}"
741
- # assert tempexp == step2
742
726
assert lxinfo2 ["operands" ] == operands2
743
727
assert lxinfo2 ["expression" ] == expression2
744
728
0 commit comments