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.
21 lines
610 B
21 lines
610 B
import pytest
|
|
|
|
import stormpy._config as config
|
|
|
|
# Skip not supported functionality
|
|
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
|
|
|
|
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")
|