- Clone the repo
- Move into the newly cloned directory
pip3 install -r requirements.txt
In this directory run pytest pytest_examples
- Add a class for testing the multiply method. Ensure you cover a representative set of inputs. Make a PR.
- Add a class for testing the divide method. Ensure you cover a representative set of inputs. Make a PR.
- Read up on pytest fixtures. Chat with alex if you have any questions.
- Create a custom pytest fixture that gives you a class instance so that you do not have to manually create it in all tests. Change one of your tests to use it. Make a PR.
- Add a class for testing the get_current_time method. Ensure you use the pytest-freezegun. Make a PR.
- Add a class for testing get_api_data and fix any bugs. Ensure that you use pytest-mock. Make a PR.
- Add a function for testing get_the_maximum_value and fix any bugs. Make a PR.
- Write down for yourself what the function is trying to do
- Write down what data or examples that would convince you it is working
- Turn those examples into tests