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
b7e2364f
Commit
b7e2364f
authored
May 23, 2019
by
Samuel GAIST
Browse files
[test][protocoltemplateeditor] Cleaned declaration file retrieval
parent
e450beee
Changes
1
Hide whitespace changes
Inline
Side-by-side
beat/editor/test/test_protocoletemplateditor.py
View file @
b7e2364f
...
...
@@ -104,12 +104,11 @@ class TestProtocolTemplateEditor:
"""Test that the protocol template editor works correctly"""
def
test_load_and_dump
(
self
,
qtbot
,
test_prefix
):
asset_model
=
AssetModel
()
asset_model
.
asset_type
=
AssetType
.
PROTOCOLTEMPLATE
asset_model
.
prefix_path
=
test_prefix
asset_name
=
"double/1"
with
open
(
asset_model
.
json_path
(
asset_name
),
"rt"
)
as
json_file
:
with
open
(
AssetType
.
PROTOCOLTEMPLATE
.
declaration_path
(
test_prefix
,
asset_name
),
"rt"
)
as
json_file
:
json_data
=
json
.
load
(
json_file
)
editor
=
ProtocolTemplateEditor
()
editor
.
load_json
(
json_data
)
...
...
Write
Preview
Markdown
is supported
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