Commit 3e5695c3 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[test][libraryeditor] Check that the editor produces valid json

parent 358e4230
......@@ -38,6 +38,7 @@ class TestLibraryEditor:
editor.load_json(reference_json)
assert editor.dump_json() == reference_json
assert editor.is_valid()
def test_load_and_dump_wrong(self, qtbot, test_prefix):
faulty_json = {"description": "test", "uses": {"alias": "test/dummy/1"}}
......@@ -48,3 +49,4 @@ class TestLibraryEditor:
editor.load_json(faulty_json)
assert editor.dump_json() == reference_json
assert editor.is_valid()
Supports Markdown
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