Commit c3bcafc3 authored by marco.langiu's avatar marco.langiu 🤓
Browse files

Update tests to use new maingopy namespace for MAiNGO API

parent 9f94e60b
Pipeline #41534 passed with stage
in 1 minute and 2 seconds
......@@ -72,8 +72,8 @@ def test_BDR_case_study(run_in_tmpdir, clear_components):
@pytest.mark.skipif(skip_long, reason='Skipping long running tests...')
@pytest.mark.skipif(missing_module('symengine'),
reason="symengine is not installed")
@pytest.mark.skipif(missing_module('comando.interfaces.maingo_api'),
reason="pymaingo is not installed")
@pytest.mark.skipif(missing_module('maingopy') and missing_module('pymaingo'),
reason="maingopy/pymaingo is not installed")
@pytest.mark.skipif(which("cplex") is None, reason="CPLEX is not installed")
@pytest.mark.skipif(which("baron") is None, reason="BARON is not installed")
def test_ORC_case_study(run_in_tmpdir, clear_components, reset_backend):
......
......@@ -6,14 +6,11 @@
import pytest
import comando
try:
import pymaingo
pymaingo_unavailable = False
except ModuleNotFoundError:
pymaingo_unavailable = True
from tests import missing_module
@pytest.mark.skipif(pymaingo_unavailable, reason="pymaingo is not installed")
@pytest.mark.skipif(missing_module('maingopy') and missing_module('pymaingo'),
reason="maingopy/pymaingo is not installed")
@pytest.mark.parametrize('scenarios, timesteps', # for test_problem
[(None, (['t1'], 1)),
(['s1', 's2'], (['t1'], 1)),
......
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