Skip to content

Commit

Permalink
fix: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shreysingla11 committed Feb 21, 2025
1 parent fb2c578 commit 365705b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions python/tests/test_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ def test_example(
), f"Please provide value for `{key}` for testing `{example['file']}`"

filepath = Path(example["file"])
original_source = filepath.read_text(encoding="utf-8")
code = filepath.read_text(encoding="utf-8")

if plugin_to_test != "lyzr":
Expand All @@ -236,10 +237,10 @@ def test_example(
# Wait for 2 minutes for example to run
proc.wait(timeout=180)

filepath.write_text(original_source, encoding="utf-8")

# Check if process exited with success
assert proc.returncode == 0, (
t.cast(t.IO[bytes], proc.stderr).read().decode(encoding="utf-8")
)
assert proc.returncode == 0

# Validate output
output = (
Expand Down

0 comments on commit 365705b

Please sign in to comment.