Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.editor
Commits
3e5695c3
Commit
3e5695c3
authored
Apr 01, 2019
by
Samuel GAIST
Browse files
[test][libraryeditor] Check that the editor produces valid json
parent
358e4230
Changes
1
Hide whitespace changes
Inline
Side-by-side
beat/editor/test/test_libraryeditor.py
View file @
3e5695c3
...
...
@@ -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
()
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment