Blame SOURCES/conftest-skipper.py

34e3b9
34e3b9
class Skipper:
34e3b9
    """Skip iso8601 and pretend tests
34e3b9
34e3b9
    RHEL buildroot doesn't have python-iso8601 and python-pretend. Skip
34e3b9
    all tests that use the excluded modules.
34e3b9
    """
34e3b9
34e3b9
    def parse_date(self, datestring):
34e3b9
        pytest.skip(f"iso8601 module is not available.")
34e3b9
34e3b9
    def stub(self, **kwargs):
34e3b9
        pytest.skip(f"pretend module is not available.")
34e3b9
34e3b9
    def raiser(self, exc):
34e3b9
        pytest.skip(f"pretend module is not available.")
34e3b9
34e3b9
34e3b9
import sys
34e3b9
34e3b9
sys.modules["iso8601"] = sys.modules["pretend"] = Skipper()
34e3b9