You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 25, 2024. It is now read-only.
Good practice in writing software is to avoid repetition in the code. A major reason for this is that if you want to make changes to the code in the future (e.g. we might want to add an argument to time_range like the timezone) you'd have to change this in several places in the code, which is more effort and increases the probability of forgetting to change one of the various places.
Most of the tests so far are very similar in structure. We can use pytest.mark.parametrize to get our tests DRY (Don't Repeat Yourself).
You will need the test function to accept parameters, for example called test_input and expected,
let the parametrize decorator know about it as its first argument and pass a list of pairs
with the values for each test.
Once you've done this, commit your changes to your repository with a meaningful commit message that also links to this issue.