Commit c5f2970b authored by Samuel GAIST's avatar Samuel GAIST

[test][assetwidget] Improve algorithm migration test

It ensure that the declaration loaded matches the one
from the migrated algorithm.
parent f780d794
Pipeline #41773 passed with stage
in 26 minutes and 56 seconds
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
# # # #
############################################################################### ###############################################################################
import json
import os import os
import random import random
...@@ -591,6 +592,10 @@ class TestAssetWidget: ...@@ -591,6 +592,10 @@ class TestAssetWidget:
asset_widget.loadAsset(asset) asset_widget.loadAsset(asset)
assert asset_widget.current_asset.name == "v1/sum/2" assert asset_widget.current_asset.name == "v1/sum/2"
assert (
json.loads(asset_widget.json_widget.toPlainText())
== asset_widget.current_asset.declaration
)
def test_experiment_error_hinting(self, qtbot, test_prefix, beat_context): def test_experiment_error_hinting(self, qtbot, test_prefix, beat_context):
asset_widget = AssetWidget() asset_widget = AssetWidget()
......
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