-
Notifications
You must be signed in to change notification settings - Fork 85
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
Refactor loops in tests to be parametrized #578
Comments
cc @Sherwin-14 |
Hey could I get some more info about this? How can I approach this and what sort of considerations I need to take? |
Hey @Sherwin-14, not 100% sure if this answers your question, but we're looking to replace the for loop in the linked test with a |
If I understand correctly, we might need to break these test functions and replace the for loop's with |
There would still be one test function, but the decorator would allow that test to run multiple times with different parameters, in other words different input data and different expected outputs. With this method, we specify the test logic once in the function, and then represent the different parameters as a data structure that we pass to the |
@mfisher87 Hey can you assign me this one? |
Fixed by #736 |
Some tests can be updated to use pytest.parametrize, such as https://github.com/nsidc/earthaccess/blob/main/tests/integration/test_auth.py#L83-L98
The text was updated successfully, but these errors were encountered: