mirror of
https://git.dn42.dev/dn42/registry.git
synced 2025-07-19 00:46:59 +08:00
add some more checks
This commit is contained in:
parent
70ab70c398
commit
a589d521da
1 changed files with 5 additions and 0 deletions
|
@ -258,6 +258,8 @@ class TestSchema(unittest.TestCase):
|
|||
schema = SchemaDOM()
|
||||
schema.parse(dom)
|
||||
|
||||
self.assertTrue(schema.valid)
|
||||
|
||||
schemas[schema.ref] = schema
|
||||
|
||||
files = []
|
||||
|
@ -267,6 +269,9 @@ class TestSchema(unittest.TestCase):
|
|||
dom = FileDOM(src=fname)
|
||||
dom.parse(text.splitlines())
|
||||
|
||||
self.assertTrue(dom.valid)
|
||||
self.assertEqual(str(dom), text)
|
||||
|
||||
files.append(dom)
|
||||
|
||||
name = dom.src.split("/")[-1].replace("_", "/")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue