Blame SOURCES/conftest-skipper.py

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