Skip to content

tests: Extract routes module #5535

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

Merged
merged 14 commits into from
Nov 25, 2022
Merged

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Nov 24, 2022

to quote the doc comment:


This module should contain all tests that test a single webserver route.

Each /api/v1 (or /api/private) sub-API should have its own module, with submodules divided by the specific endpoint (e.g. list, create, read, update, delete).

Examples

  • testing all the ways authentication works or fails on a specific route
  • testing error behavior of a route
  • testing output serialization of a route
  • testing query parameter combinations of a route

note that not all tests have been migrated yet, but it's a start :)

@Turbo87 Turbo87 added C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear A-backend ⚙️ labels Nov 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-backend ⚙️ C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants