ccproxy.testing.endpoints.models¶
ccproxy.testing.endpoints.models
¶
Data models shared by the endpoint testing helpers.
EndpointTest
dataclass
¶
Configuration for a single endpoint test.
EndpointRequestResult
dataclass
¶
EndpointRequestResult(
phase, method, status_code, stream, details=dict()
)
Outcome of a single HTTP request made while executing a test.
EndpointTestResult
dataclass
¶
EndpointTestResult(
test,
index,
success,
error=None,
exception=None,
request_results=list(),
)
Result of running a single endpoint test.
EndpointTestRunSummary
dataclass
¶
EndpointTestRunSummary(
base_url,
results,
successful_count,
failure_count,
errors=list(),
)
Summary of executing a batch of endpoint tests.
all_passed
¶
assert_success
¶
Raise AssertionError if any test failed (useful for pytest).