prefect.testing.utilities
Internal utilities for tests.
Functions
exceptions_equal
==
. They can be compared using is
but this
will fail if the exception is serialized/deserialized so this utility does its
best to assert equality using the type and args used to initialize the exception
kubernetes_environments_equal
assert_does_not_warn
- ignore_warnings: List of warning types to ignore. Example: [DeprecationWarning, UserWarning]
prefect_test_harness
server_startup_timeout
: The maximum time to wait for the server to start. Defaults to 30 seconds. If set toNone
, the value ofPREFECT_SERVER_EPHEMERAL_STARTUP_TIMEOUT_SECONDS
will be used.