Skip to content
Snippets Groups Projects
Commit c8c055c4 authored by florian's avatar florian
Browse files

TST: Add test for error in file properties

parent b9490fcf
No related branches found
No related tags found
2 merge requests!89ENH: JsonSchemaExporter accepts do_not_create parameter.,!81F schema export references
This commit is part of merge request !89. Comments created here will be created in the context of that merge request.
...@@ -279,6 +279,7 @@ def test_rt_with_references(): ...@@ -279,6 +279,7 @@ def test_rt_with_references():
rt.add_property(name="RefProp", datatype=db.REFERENCE) rt.add_property(name="RefProp", datatype=db.REFERENCE)
schema = rtjs(rt) schema = rtjs(rt)
props = schema["properties"]
rt = db.RecordType() rt = db.RecordType()
rt.add_property(name="RefProp", datatype="OtherType") rt.add_property(name="RefProp", datatype="OtherType")
...@@ -295,6 +296,18 @@ def test_rt_with_references(): ...@@ -295,6 +296,18 @@ def test_rt_with_references():
schema = rtjs(rt) schema = rtjs(rt)
rt = db.RecordType()
rt.add_property(name="FileProp", datatype=db.FILE)
with raises(NotImplementedError):
schema = rtjs(rt)
rt = db.RecordType()
rt.add_property(name="FileProp", datatype=db.LIST(db.FILE))
with raises(NotImplementedError):
schema = rtjs(rt)
def test_broken(): def test_broken():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment