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

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