dd726f3b17
This is an automated DistroBaker update from upstream sources. If you do not know what this is about or would like to opt out, contact the OSCI team. Source: https://src.fedoraproject.org/rpms/python-cryptography.git#6046d8e211da77b471dd3fed0add14f5fa1ccda9
23 lines
524 B
Python
23 lines
524 B
Python
|
|
class Skipper:
|
|
"""Skip iso8601 and pretend tests
|
|
|
|
RHEL buildroot doesn't have python-iso8601 and python-pretend. Skip
|
|
all tests that use the excluded modules.
|
|
"""
|
|
|
|
def parse_date(self, datestring):
|
|
pytest.skip(f"iso8601 module is not available.")
|
|
|
|
def stub(self, **kwargs):
|
|
pytest.skip(f"pretend module is not available.")
|
|
|
|
def raiser(self, exc):
|
|
pytest.skip(f"pretend module is not available.")
|
|
|
|
|
|
import sys
|
|
|
|
sys.modules["iso8601"] = sys.modules["pretend"] = Skipper()
|
|
|