Skip to content

Name test fixtures after the operationId of their endpoint - #34

Merged
pavog merged 1 commit into
masterfrom
name-fixtures
Oct 20, 2026
Merged

pavog merged 1 commit into
masterfrom
name-fixtures

Conversation

@pavog

@pavog pavog commented Oct 20, 2026

Copy link
Copy Markdown
Member

The unit test fixtures were named in snake_case with a _response suffix, e.g. get_project_response.json. They are now named after the operationId of the endpoint they belong to, e.g. getProject.json, so the fixture for an endpoint can be found directly from the generated API method.

Old New
get_notification_response.json getNotification.json
get_payout_history_response.json getPayoutHistory.json
get_project_dependencies_response.json getDependencies.json
get_project_response.json getProject.json
get_report_response.json getReport.json
get_team_members_response.json getTeamMembers.json
get_thread_response.json getThread.json
get_thread_without_references_response.json getThreadWithoutReferences.json
get_user_response.json getUser.json
get_version_response.json getVersion.json
get_version_without_dependencies_response.json getVersionWithoutDependencies.json
search_projects_response.json searchProjects.json

get_forge_updates_response.json and get_statistics_response.json were not used by any test and are removed.

Only tests are changed. All unit tests pass with the same number of assertions as before.

@pavog
pavog merged commit ecec687 into master Oct 20, 2026
4 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.

1 participant