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.

25 lines
568 B

2 months ago
  1. import pytest
  2. import pycarl
  3. # Skip not supported functionality
  4. cln = pytest.mark.skipif(not pycarl.has_cln(), reason="No support for CLN")
  5. parser = pytest.mark.skipif(not pycarl.has_parser(), reason="No support for carlparser")
  6. # Parametrize available number types
  7. import pycarl.gmp
  8. parameters = [pycarl.gmp]
  9. names = ["gmp"]
  10. if pycarl.has_cln():
  11. import pycarl.cln
  12. parameters.append(pycarl.cln)
  13. names.append("cln")
  14. class PackageSelector:
  15. @pytest.fixture(params=parameters, ids=names)
  16. def package(self, request):
  17. return request.param