Project

General

Profile

« Previous | Next » 

Revision 117bf196

Added by koszko over 1 year ago

add test case for unknown schema version error

View differences:

tests/test_build.py
706 706
    monkeypatch.delitem(index_obj, 'definitions')
707 707
    return ValidationError,
708 708

  
709
@collect(error_makers)
710
def sample_source_error_unknown_index_schema(monkeypatch, sample_source):
711
    """Modify index.json to be use a not-yet-released schema."""
712
    schema_id = \
713
        'https://hydrilla.koszko.org/schemas/package_source-65536.schema.json'
714
    monkeypatch.setitem(index_obj, "$schema", schema_id)
715
    return hydrilla_util.UnknownSchemaError, \
716
        r'^unknown_schema_package_source_.*/hello/index\.json$'
717

  
709 718
@collect(error_makers)
710 719
def sample_source_error_bad_comment(monkeypatch, sample_source):
711 720
    """Modify index.json to have an invalid '/' in it."""

Also available in: Unified diff