Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
(cherry picked from commit 902abc4)
  • Loading branch information
MasloMaslane committed Sep 23, 2023
1 parent 2fa690a commit 63bd382
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/commands/run/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,3 +553,17 @@ def test_flag_tests_not_existing_tests(create_package, time_tool, capsys):
assert e.value.code == 1
out = capsys.readouterr().out
assert "There are no tests to run." in out


@pytest.mark.parametrize("create_package", [get_simple_package_path()], indirect=True)
def test_cwd_in_prog(create_package):
"""
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"])
command = Command()
command.run(args)

0 comments on commit 63bd382

Please sign in to comment.