There is an API which returns based on a date whether it is a working day for the carer or not.
For Example: The Carer works Monday to Friday. So a date which falls on a Saturday would return that it is not a working day.
We are going to push this API to production for the first time. In order to ensure we have delivered quality, reliable and stable software what approach should we take?
- Add a TEST-APPROACH.md explaining your test approach for this task, including different levels & types of test
- Fix the failing test
- Add a test for a negative scenario
- Refactor anything you would improve
- Make sure to comment and add details of your thought process and any assumptions you have made
- Don't spend too long on it (2 hours max)
Resource used to create project Flask Docs
python version (3.10.0)
pip version (21.2.3)
python3 -m venv venvor Windowspy -3 -m venv venv. venv/bin/activateor Windowsvenv\Scripts\activatepip install -e .export FLASK_APP=flaskror Windowsset FLASK_APP=flaskrexport FLASK_ENV=developmentor Windowsset FLASK_ENV=developmentflask run
python3 -m venv venvor Windowspy -3 -m venv venv. venv/bin/activateor Windowsvenv\Scripts\activatepip install '.[test]'pytest
- Fork and push your changes, then notify the hiring manager
or - Clone then zip it up and email to hiring manager
(please do not create a pull request or push to main)