zola/components
Sam Ford 6b5768fd76 Treat 304 as valid, add mock tests, fix mock issue (#900)
* Treat 304 (Not Modified) requests as valid.

* Add tests for 301-to-200 links, 301-to-404 links, and 500 links.
This helps to test redirections and the previously-added
response.status() checking for non-success status codes in check_url().

* Make names for HTTP mock paths unique, to avoid weird behavior. It
seems like mocks with the same path can potentially bleed between
tests, so you may end up with an unexpected response which causes the
test to sometimes pass and sometimes fail.

* Fix Clippy warnings about String::from(format!()).
2020-02-02 17:48:43 -08:00
..
config Use Rust 2018 edition (#885) 2020-02-02 17:48:43 -08:00
errors Use Rust 2018 edition (#885) 2020-02-02 17:48:43 -08:00
front_matter Format code using cargo fmt (#896) 2020-02-02 17:48:43 -08:00
imageproc Use Rust 2018 edition (#885) 2020-02-02 17:48:43 -08:00
library Format code using cargo fmt (#896) 2020-02-02 17:48:43 -08:00
link_checker Treat 304 as valid, add mock tests, fix mock issue (#900) 2020-02-02 17:48:43 -08:00
rebuild Use Rust 2018 edition (#885) 2020-02-02 17:48:43 -08:00
rendering Format code using cargo fmt (#896) 2020-02-02 17:48:43 -08:00
search Use Rust 2018 edition (#885) 2020-02-02 17:48:43 -08:00
site Use Rust 2018 edition (#885) 2020-02-02 17:48:43 -08:00
templates Treat 304 as valid, add mock tests, fix mock issue (#900) 2020-02-02 17:48:43 -08:00
utils Format code using cargo fmt (#896) 2020-02-02 17:48:43 -08:00