Test data
Faker integration —
fake_email/fake_name/fake_valueand friends;fakeris a soft dependency.Factories —
Factory(defaults)evaluates callable defaults perbuild(); pre-builtuser_factory/order_factory/product_factory.Testcontainers —
start_postgres/start_redis/start_genericwrap testcontainers-python..env loader + ${ENV.X} —
load_env/expand_in_actionso the same actions can target dev / staging / prod.Data-driven runner —
load_dataset_csv/load_dataset_json/run_with_datasetwith${ROW.col}placeholder expansion.
Test data & determinism
snapshot.fixture_record.FixtureRecorder("fx.json", mode="auto")— record once, replay forever; modesrecord/replay/auto.database.fixtures.load_fixture_file("seed.json")+load_into_connection(conn, fixture)— seed Postgres / MySQL / SQLite from{table: [rows]}JSON.
Auth, API, database
OAuth2 / OIDC —
client_credentials_token/password_grant_token/refresh_token_grantwith in-process token cache that refreshes 30 s before expiry.HTTP API —
http_get/http_post/http_put/http_patch/http_deleteplushttp_assert_statusandhttp_assert_json_contains.Database —
db_query/db_assert_count/db_assert_value/db_assert_exists/db_assert_empty; SQLAlchemy soft dependency, bound parameters only.
API & contract testing
api_mock.MockRouter().add(method, url_pattern, body=, status=, times=)— supports literal, glob, andre:regex URL patterns; attach to a Playwright page withattach_to_page(page).contract_testing.validate_response(body, schema)— JSON-Schema subset (type / properties / required / items / enum / oneOf / additionalProperties);validate_against_openapiresolves$refand looks uppaths[…].responses[…].graphql.GraphQLClient(endpoint).execute(query, variables=)+extract_field(payload, "users[0].name").mock_services—MockOAuthServer,MockSmtpServer,MockS3Storagefor offline CI runs.