You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
723 B
23 lines
723 B
import pytest
|
|
|
|
import stormpy._config as config
|
|
|
|
# Skip not supported functionality
|
|
has_xml = config.storm_with_xerces
|
|
has_dft = config.storm_with_dft
|
|
has_gspn = config.storm_with_gspn
|
|
has_pars = config.storm_with_pars
|
|
|
|
# Check if numpy is available
|
|
try:
|
|
import numpy
|
|
|
|
has_numpy = True
|
|
except ImportError:
|
|
has_numpy = False
|
|
|
|
xml = pytest.mark.skipif(not has_xml, reason="No support for XML via xerces")
|
|
dft = pytest.mark.skipif(not has_dft, reason="No support for DFTs")
|
|
gspn = pytest.mark.skipif(not has_gspn, reason="No support for GSPNs")
|
|
pars = pytest.mark.skipif(not has_pars, reason="No support for parametric model checking")
|
|
numpy_avail = pytest.mark.skipif(not has_numpy, reason="Numpy not available")
|