diff --git a/test-requirements.txt b/test-requirements.txt index c38457464..d6e26863c 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -35,3 +35,6 @@ reno>=2.5.0 # Apache-2.0 # placement functional tests wsgi-intercept>=1.4.1 # MIT License + +# redirect tests in docs +whereto>=0.3.0 # Apache-2.0 diff --git a/tox.ini b/tox.ini index 9cbc7f4e8..57811fa80 100644 --- a/tox.ini +++ b/tox.ini @@ -144,6 +144,8 @@ basepython = python2.7 commands = rm -rf doc/source/api doc/build api-guide/build api-ref/build placement-api-ref/build python setup.py build_sphinx + # Test the redirects + whereto doc/build/html/.htaccess doc/test/redirect-tests.txt # Check that all JSON files don't have \r\n in line. bash -c "! find doc/ -type f -name *.json | xargs grep -U -n $'\r'" # Check that all included JSON files are valid JSON