Skip to content

Commit

Permalink
testing hopefully works
Browse files Browse the repository at this point in the history
  • Loading branch information
davidpagnon committed Sep 1, 2024
1 parent dab110c commit 3ada478
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sports2D/Utilities/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ def test_workflow():

# From command line (CLI) with config file
cli_config_path = Path(__file__).resolve().parent.parent / 'Demo' / 'Config_demo.toml'
cli_video_dir = Path(__file__).resolve().parent.parent / 'Demo'
cli_video_file = Path(__file__).resolve().parent.parent / 'Demo' / 'demo.mp4'
config_dict = toml.load(cli_config_path)
config_dict.get("project").update({"video_dir": cli_video_dir})
config_dict.get("project").update({"video_input": cli_video_file})
with open(cli_config_path, 'w') as f: toml.dump(config_dict, f)

demo_config_cmd = ["sports2d", "--config", cli_config_path, "--show_realtime_results", "False", "--show_plots", "False"]
subprocess.run(demo_config_cmd, check=True, capture_output=True, text=True)

0 comments on commit 3ada478

Please sign in to comment.