Skip to content

test: reproduce missing pagination headers in tests #1788

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 1 commit into from
Dec 30, 2021

Conversation

nejch
Copy link
Member

@nejch nejch commented Dec 30, 2021

Built on top of #1787.

I tried parametrizing tests at first but this seemed cleaner in the end, it would get overly complicated because of pytest-dev/pytest#349.

@nejch nejch changed the title Test/missing pagination headers test: reproduce missing pagination headers in tests Dec 30, 2021
Copy link
Member

@JohnVillalovos JohnVillalovos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

Left a nit. But good to merge for me.

@@ -18,6 +18,7 @@

import pickle
import warnings
from copy import deepcopy
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: My personal taste is import copy and then use copy.deepcopy() as when reading the code quickly know where it comes from.

@JohnVillalovos JohnVillalovos merged commit 501f9a1 into main Dec 30, 2021
@JohnVillalovos JohnVillalovos deleted the test/missing-pagination-headers branch December 30, 2021 19:26
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