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

2 months ago
  1. import pytest
  2. import stormpy._config as config
  3. # Skip not supported functionality
  4. has_xml = config.storm_with_xerces
  5. has_dft = config.storm_with_dft
  6. has_gspn = config.storm_with_gspn
  7. has_pars = config.storm_with_pars
  8. # Check if numpy is available
  9. try:
  10. import numpy
  11. has_numpy = True
  12. except ImportError:
  13. has_numpy = False
  14. xml = pytest.mark.skipif(not has_xml, reason="No support for XML via xerces")
  15. dft = pytest.mark.skipif(not has_dft, reason="No support for DFTs")
  16. gspn = pytest.mark.skipif(not has_gspn, reason="No support for GSPNs")
  17. pars = pytest.mark.skipif(not has_pars, reason="No support for parametric model checking")
  18. numpy_avail = pytest.mark.skipif(not has_numpy, reason="Numpy not available")