Skip to content

Commit

Permalink
update test to use time_tool
Browse files Browse the repository at this point in the history
  • Loading branch information
adespawn committed Feb 17, 2024
1 parent 1a9c5c5 commit b495b0b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/GithubRunner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ jobs:
pip install .[tests]
sudo apt install texlive-latex-recommended -y
sudo apt install ghostscript -y
- name: Run github runner pytest
env:
PYTEST_ADDOPTS: "--color=yes"
run: |
python -m pytest -v --github-runner
- name: Run pytest
env:
PYTEST_ADDOPTS: "--color=yes"
Expand Down
4 changes: 2 additions & 2 deletions tests/commands/run/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -717,14 +717,14 @@ def test_contest_type_change(create_package, time_tool):


@pytest.mark.parametrize("create_package", [get_simple_package_path()], indirect=True)
def test_cwd_in_prog(create_package):
def test_cwd_in_prog(create_package, time_tool):
"""
Test if `sinol-make` works when cwd is in prog.
"""
package_path = create_package
os.chdir("prog")
create_ins_outs(package_path)
parser = configure_parsers()
args = parser.parse_args(["run"])
args = parser.parse_args(["run", "--time-tool", time_tool])
command = Command()
command.run(args)

0 comments on commit b495b0b

Please sign in to comment.