tmp_path = PosixPath('/tmp/pytest-of-jenkins/pytest-0/test_run_with_configuration_fa0')
def test_run_with_configuration_failure(tmp_path):
"""Triggering a load should fail since configuration is incomplete"""
runner = CliRunner()
conf_path = os.path.join(str(tmp_path), "cli.yml")
with open(conf_path, "w") as f:
f.write(yaml.dump({}))
with pytest.raises(ValueError, match="Missing storage"):
runner.invoke(
loader_cli,
[
"-C",
conf_path,
"run",
"pypi",
"url=https://some-url",
],
> catch_exceptions=False,
)
E Failed: DID NOT RAISE <class 'ValueError'>
.tox/py3/lib/python3.7/site-packages/swh/loader/tests/test_cli.py:87: Failed
TEST RESULT
TEST RESULT
- Run At
- Oct 3 2022, 2:53 PM