cli_runner = <click.testing.CliRunner object at 0x7fe419c2a518>
confpath_good = '/home/jenkins/.config/swh/global.yml'
rootpath_good = '/usr/lib/python3/dist-packages/urllib3'
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fe419c099e8>
def test_config_path_option_envvar(
cli_runner, confpath_good, rootpath_good, monkeypatch
):
monkeypatch.setenv("SWH_CONFIG_FILE", confpath_good)
res = cli_runner.invoke(scanner, ["-C", confpath_good, "scan", rootpath_good])
print(res.__dict__)
> assert res.exit_code == 0
E assert 1 == 0
E +1
E -0
.tox/py3/lib/python3.7/site-packages/swh/scanner/tests/test_cli.py:82: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Sep 29 2020, 7:57 PM