diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-05-11 10:35:51 +0200 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-05-11 11:12:24 +0200 |
commit | 98687e9148bac0a18bf6a62e672275af9a920d9c (patch) | |
tree | e9aea2c106f2b64bd09030322ec7214a813bb876 /tests/test_build.py | |
parent | 866922f80326671815c9187eed0ba6c4127b8721 (diff) | |
download | hydrilla-builder-98687e9148bac0a18bf6a62e672275af9a920d9c.tar.gz hydrilla-builder-98687e9148bac0a18bf6a62e672275af9a920d9c.zip |
raise a more informative error when a file referenced from index.json is missing
Diffstat (limited to 'tests/test_build.py')
-rw-r--r-- | tests/test_build.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_build.py b/tests/test_build.py index 77b1898..3d564e3 100644 --- a/tests/test_build.py +++ b/tests/test_build.py @@ -582,7 +582,7 @@ def sample_source_error_missing_file(monkeypatch, sample_source): Modify index.json to expect missing report.spdx file and cause an error. """ monkeypatch.delitem(index_obj, 'reuse_generate_spdx_report') - return FileNotFoundError, + return FileReferenceError, '^referenced_file_report.spdx_missing$' @error_maker def sample_source_error_index_schema(monkeypatch, sample_source): |