Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automated URL route testing, URL redirects and some minor refactor tidy ups #621

Merged
merged 4 commits into from
Nov 7, 2024

Conversation

chrisarridge
Copy link
Contributor

This PR mainly adds URL redirects for the previous .html site structure and includes automated URL route testing for both the new pages and the redirects. It also includes a few commits aimed at tidying up the code and documentation.

This commit adds a set of url routes that redirect from the old
Dashboard to the new views.  It also removes the url route for the
coverage page.
Using the Django test framework this commit adds some basic automated
testing of the Dashboard URL routes, contains some fixes to the view
functions to properly return HTTP 404 errors, and updates the
documentation (including a small fix for the file paths).  A small fix
was also added to pytest.ini.
This commit moves the file path constants from config.py into the ui
settings module so that it is more consistent with Django's settings
architecture.
After moving configuration constants into settings.py the config.py
module was somewhat poorly named, this commit changes the name
and refactors the other code to use the new name.
@Bjwebb Bjwebb merged commit ed168b3 into merge-codeforiati-and-publishingstats Nov 7, 2024
2 checks passed
@Bjwebb Bjwebb deleted the refactor-and-tests branch November 11, 2024 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants