zola/components
Sam Ford 11f7a6d114 Mock HTTP requests in tests (#898)
Certain tests involving HTTP requests were sometimes hanging
indefinitely, so this uses Mockito for HTTP mocking. This seemingly
resolves the issue and makes these tests more reliable.

The existing can_fail_404_links test has been renamed to
can_fail_unresolved_links, to represent what actually occurs in the
test. The can_fail_404_links test now deals with a proper 404
response.

Just to be clear, the check_site test in the site component will
still create outgoing HTTP requests (due to the URLs used in the
test_site), so this commit only uses HTTP mocking where possible.
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 Mock HTTP requests in tests (#898) 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 Mock HTTP requests in tests (#898) 2020-02-02 17:48:43 -08:00
utils Format code using cargo fmt (#896) 2020-02-02 17:48:43 -08:00