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

Combine API request spec assertions #31970

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

mjankowski
Copy link
Contributor

In prep for adding a truly comical amount of "is this a json response" checks (see #31749 (comment)), this is a once over on the api request specs looking for places to consolidate multiple request/response cycles.

Reduces factory creation from ~3050 to ~2900, specs run slightly faster (just over a minute to just under a minute pretty reliably for api req specs only locally).

I tried to minimize any style/formatting stuff and keep it to just combining things. Will probably do the json response additions, and then do another pass to address any truly weird readability/formatting things in the aftermath of the various changes.

@ClearlyClaire ClearlyClaire added this pull request to the merge queue Sep 19, 2024
Merged via the queue into mastodon:main with commit b071e61 Sep 19, 2024
29 checks passed
@mjankowski mjankowski deleted the request-api-spec-combined branch September 19, 2024 13:10
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