Commit b7e2364f authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[test][protocoltemplateeditor] Cleaned declaration file retrieval

parent e450beee
......@@ -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()
Markdown is supported
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