Skip to main content

Module common

Module common 

Source
Expand description

Common testing utilities and shared test infrastructure

Constants§

DEFAULT_TIMEOUT
Default timeout for API requests in tests
LOAD_TEST_TIMEOUT
Default timeout for load tests
MAX_CONCURRENT_CONNECTIONS
Maximum concurrent connections for load tests
TARGET_RPS
Target requests per second for performance benchmarks

Functions§

assert_latency_acceptable
Assert response time is within acceptable limits
calculate_percentile
Calculate percentile from sorted durations
with_timeout
Run an async test with timeout