test_replay.py 660 B

1234567891011121314151617
  1. from run_replay import get_args, main
  2. import pytest
  3. @pytest.mark.slow
  4. def test_model_replay():
  5. # fixme: might make sure that path to test data is independent of CWD
  6. args = [
  7. "--traj_path",
  8. "tests/test_data/trajectories/gpt4__klieret__swe-agent-test-repo__default_from_url__t-0.00__p-0.95__c-3.00__install-1/klieret__swe-agent-test-repo-i1.traj",
  9. "--data_path",
  10. "https://github.com/klieret/swe-agent-test-repo/issues/1",
  11. "--config_file",
  12. "config/default_from_url.yaml",
  13. "--raise_exceptions=True",
  14. ]
  15. args, remaining_args = get_args(args)
  16. main(**vars(args), forward_args=remaining_args)