Module trillium_testing::prelude
source · Expand description
useful stuff for testing trillium apps
Re-exports§
Macros§
- assert that the response body is as specified. this assertion requires mutation of the conn.
- asserts that the response body matches the specified pattern, using
str::contains
- asserts any number of response headers
- assert that all of the following are true:
- assert_ok is like
assert_response!
except it always asserts a status of 200 Ok. - combines several other assertions. this assertion can be used to assert:
- assert that the status code of a conn is as specified.
Structs§
- A Trillium HTTP connection.
Enums§
- HTTP request methods.
- HTTP response status codes.
Functions§
- Runs the global and the local executor on the current thread