diff --git a/swh/deposit/tests/cli/test_client.py b/swh/deposit/tests/cli/test_client.py --- a/swh/deposit/tests/cli/test_client.py +++ b/swh/deposit/tests/cli/test_client.py @@ -695,8 +695,8 @@ with open(metadata_path, "w") as f: f.write(metadata) - # fmt: off with pytest.raises(ValidationError, match="Invalid"): + # fmt: off cli_runner.invoke( cli, [ @@ -725,6 +725,7 @@ f.write(metadata) with pytest.raises(InputError, match="SWHID must be provided"): + # fmt: off cli_runner.invoke( cli, [