Project

General

Profile

« Previous | Next » 

Revision 98687e91

Added by koszko over 1 year ago

raise a more informative error when a file referenced from index.json is missing

View differences:

tests/test_build.py
582 582
    Modify index.json to expect missing report.spdx file and cause an error.
583 583
    """
584 584
    monkeypatch.delitem(index_obj, 'reuse_generate_spdx_report')
585
    return FileNotFoundError,
585
    return FileReferenceError, '^referenced_file_report.spdx_missing$'
586 586

  
587 587
@error_maker
588 588
def sample_source_error_index_schema(monkeypatch, sample_source):

Also available in: Unified diff