Commit 295c49a6 authored by Paul Warren's avatar Paul Warren
Browse files

Restructuring package

parent 9017d57e
from .abbreviate import load_short_schema
#!/usr/bin/env python3
import jsonschema
import shortjsonschema
import sys
import json
with open(sys.argv[1]) as f:
s = shortjsonschema.load(
print(json.dumps(s, indent=4))
from .expand import load
......@@ -162,6 +162,6 @@ class ParseError(Exception):
def load_short_schema(s):
def load(s):
p = Parser()
return p.parse(s)
from jsonschemashort import load_short_schema
from shortjsonschema import load
import jsonschema
import pytest
......@@ -222,7 +222,7 @@ def test_short_schema():
for t in tests:
s = load_short_schema(t["input"])
s = load(t["input"])
assert s == t["output"]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment