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

Add additional tests on views #757

Merged
merged 2 commits into from
Oct 8, 2024

Conversation

geekygirlsarah
Copy link
Member

What GitHub issue does this PR apply to?

Resolves #691

What changed and why?

Added a variety of tests:

  • Check only GET is allowed
  • Check friendly names of languages/concepts don't pass
  • Check a reverse on a URL that doesn't exist raises exception

Also force all pages to only allow GET methods.

Checklist

  • I claimed any associated issue(s) and they are not someone else's
  • I have looked at documentation to ensure I made any revisions correctly
  • I tested my changes locally to ensure they work
  • For language files, I have validated the edited files are valid JSON and data shows up correctly
  • For website code edits, I have added or edited any appropriate unit tests for my changes

@geekygirlsarah geekygirlsarah merged commit 862170f into codethesaurus:main Oct 8, 2024
5 checks passed
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.

Add/fix unit test(s) to check HTTP status codes for invalid lookups
1 participant