Commit 5fe8bac1 authored by payno's avatar payno
Browse files

[ewoks][test] add missing condition if larch or pymca installed

parent 4e011ad4
Pipeline #51178 passed with stages
in 9 minutes and 25 seconds
......@@ -37,6 +37,19 @@ import shutil
import os
import xml.etree.ElementTree as ET
try:
import PyMca5
except ImportError:
has_pymca = False
else:
has_pymca = True
try:
import larch
except ImportError:
has_larch = False
else:
has_larch = True
class TestOrangeGraph(unittest.TestCase):
def setUp(self) -> None:
......@@ -61,6 +74,7 @@ class TestOrangeGraph(unittest.TestCase):
link_node.get("source_channel_id"),
)
@unittest.skipIf(has_pymca is False, "PyMca5 is not installed")
def test_orange_graph_pymca(self):
"""test conversion of a workflow based on pymca to ewoks graph
from orange to ewoks and from ewoks to orange"""
......@@ -121,6 +135,7 @@ class TestOrangeGraph(unittest.TestCase):
links_by_id = {link.get("id"): self.get_link_info(link) for link in links}
self.assertEqual(len(links_by_id), 5)
@unittest.skipIf(has_larch is False, "xraylarch not installed")
def test_orange_graph_larch(self):
"""test conversion of a workflow based on larch to ewoks graph
from orange to ewoks and from ewoks to orange"""
......
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