Exemplo n.º 1
0
def test_schema_from_file_name(schema_fname):
    s = Schema.from_file(schema_fname)
    assert s['title'] == 'Heroku Platform API'
Exemplo n.º 2
0
def test_schema_from_stream(schema_fname):
    with open(schema_fname) as fp:
        s = Schema.from_file(fp)
        assert s['title'] == 'Heroku Platform API'
Exemplo n.º 3
0
def test_schema_resolve(schema_fname):
    s = Schema.from_file(schema_fname)
    assert s.resolve_ref(s['properties']['app']['$ref']) == s['definitions']['app']