Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
faust-streaming / faust / livecheck / exceptions.py
Size: Mime:
"""LiveCheck - related exceptions."""

__all__ = [
    "LiveCheckError",
    "SuiteFailed",
    "ServiceDown",
    "SuiteStalled",
    "LiveCheckTestSkipped",
    "LiveCheckTestFailed",
    "LiveCheckTestRaised",
    "LiveCheckTestTimeout",
]


class LiveCheckError(Exception):
    """Generic base class for LiveCheck test errors."""


class SuiteFailed(LiveCheckError):
    """The whole test suite failed (not just a test)."""


class ServiceDown(SuiteFailed):
    """Suite failed after a depending service is not responding.

    Used when for example a test case is periodically sending
    requests to a HTTP service, and that HTTP server is not responding.
    """


class SuiteStalled(SuiteFailed):
    """The suite is not running.

    Raised when ``warn_stalled_after=3600`` is set and there has not
    been any execution requests in the last hour.
    """


class LiveCheckTestSkipped(LiveCheckError):
    """Test was skipped."""


class LiveCheckTestFailed(LiveCheckError):
    """The test failed an assertion."""


class LiveCheckTestRaised(LiveCheckError):
    """The test raised an exception."""


class LiveCheckTestTimeout(LiveCheckError):
    """The test timed out waiting for an event or during processing."""