Skip to content

Commit 4c5e492

Browse files
committed
Remove unexpected replay test
Signed-off-by: Louis Mandel <[email protected]>
1 parent fc0b50b commit 4c5e492

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

src/pdl/pdl_interpreter.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -652,8 +652,6 @@ def process_block_body_with_replay(
652652
assert isinstance(block_id, str)
653653
try:
654654
result = state.replay[block_id]
655-
# XXX TO REMOVE
656-
assert False, "XXXXXXXXXXXXX"
657655
background: LazyMessages = SingletonContext(
658656
PdlDict({"role": state.role, "content": result})
659657
)

tests/test_examples_run.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def __execute_and_replay_file(self, pdl_file_name: str) -> None:
220220

221221
exec_result, output = self.__execute_file(pdl_file_path, scope, replay={})
222222

223-
if False and output is not None: # XXXXX REMOVE `False and`
223+
if output is not None:
224224
replay_result, _ = self.__execute_file(
225225
pdl_file_path, scope, replay=output["replay"]
226226
)
@@ -388,7 +388,6 @@ def test_example_runs(capsys: CaptureFixture[str], monkeypatch: MonkeyPatch) ->
388388
assert (
389389
len(background.failed_results.wrong_results) == 0
390390
), f"Wrong results: {background.failed_results.wrong_results}"
391-
# XXXXXXX REMOVE comments
392-
# assert (
393-
# len(background.failed_results.wrong_replay_results) == 0
394-
# ), f"Wrong replay results: {background.failed_results.wrong_results}"
391+
assert (
392+
len(background.failed_results.wrong_replay_results) == 0
393+
), f"Wrong replay results: {background.failed_results.wrong_results}"

0 commit comments

Comments
 (0)