Expand description
Assertion helpers for common test patterns. Additional assertion helpers for testing
Modules§
- tasks
- Task execution assertion utilities
Functions§
- assert_
contains - Assert that response body contains text
- assert_
error - Assert that a result is an error (generic error assertion)
- assert_
internal_ error - Assert that a result is an Internal error
- assert_
json_ array_ contains - Assert that JSON array contains a value
- assert_
json_ array_ empty - Assert that JSON array is empty
- assert_
json_ array_ len - Assert that JSON array has a specific length
- assert_
json_ array_ not_ empty - Assert that JSON array is not empty
- assert_
json_ field_ eq - Assert that JSON contains a field with a specific value
- assert_
json_ has_ field - Assert that JSON contains a field
- assert_
json_ matches - Assert that JSON matches a pattern (subset matching)
- assert_
json_ missing_ field - Assert that JSON does not contain a field
- assert_
json_ response - Assert that response contains expected JSON data (exact match)
- assert_
json_ response_ contains - Assert that response is JSON and contains expected field with value
- assert_
not_ contains - Assert that response body does not contain text
- assert_
not_ found_ error - Assert that a result is a NotFound error
- assert_
response_ body_ contains - Assert that response body contains expected text
- assert_
response_ body_ equals - Assert that response body equals expected bytes
- assert_
status - Assert that response has expected status code
- assert_
status_ client_ error - Assert that status is in 4xx range
- assert_
status_ eq - Assert that two status codes are equal
- assert_
status_ error - Assert that status is an error (4xx or 5xx)
- assert_
status_ redirect - Assert that status is in 3xx range
- assert_
status_ server_ error - Assert that status is in 5xx range
- assert_
status_ success - Assert that status is in 2xx range
- assert_
validation_ error - Assert that a result is a Validation error