Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions tests/test_main.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
from pathlib import Path
import subprocess
import sys
from pathlib import Path

import pytest


@pytest.mark.pricy
def test_main_script_execution():
# this should trigger agent_4o_mini on miniwob_tiny_test unless this was
# reconfigured differently.
script_path = Path(__file__).parent.parent / "main.py"
path = Path(__file__).parent.parent / "main.py"

sys.path.insert(0, str(path.parent))

# just make sure it's in the right state
main = __import__(script_path.stem)
main = __import__(path.stem)
assert main.benchmark == "miniwob_tiny_test"
assert main.reproducibility_mode == False
assert main.relaunch == False
assert main.n_jobs <= 10

result = subprocess.run(["python", script_path], capture_output=True, text=True, timeout=5 * 60)
result = subprocess.run(["python", str(path)], capture_output=True, text=True, timeout=5 * 60)
assert result.returncode == 0


Expand Down