(tmp_path, dep)
| 86 | |
| 87 | @pytest.mark.parametrize('dep', ('cli:shellharden:4.2.0', 'cli:shellharden')) |
| 88 | def test_rust_cli_additional_dependencies(tmp_path, dep): |
| 89 | _make_local_repo(str(tmp_path)) |
| 90 | |
| 91 | t_sh = tmp_path.joinpath('t.sh') |
| 92 | t_sh.write_text('echo $hi\n') |
| 93 | |
| 94 | assert rust.get_default_version() == 'system' |
| 95 | ret = run_language( |
| 96 | tmp_path, |
| 97 | rust, |
| 98 | 'shellharden --transform', |
| 99 | deps=(dep,), |
| 100 | args=(str(t_sh),), |
| 101 | ) |
| 102 | assert ret == (0, b'echo "$hi"\n') |
| 103 | |
| 104 | |
| 105 | def test_run_lib_additional_dependencies(tmp_path): |
nothing calls this directly
no test coverage detected