This web app should have two pages,
- The welcoming home page http://127.0.0.1:8000/
- The extremely accurate math page http://127.0.0.1:8000/two_plus_two
But it looks like the home page message is wrong, and the math is not correct either.
Fortunately, there are some tests that can help identify problems, or verify things are working.
Can you fix the code?
Fork this repository and clone it to your computer.
Install dependencies pip install -r requirements.txt (optionally create a virtual environment first)
Run the app with python manage.py runserver
python manage.py test
These are tasks that are performed when an event happens at GitHub. The Actions for this repository are defined in the .github/worklows/django.yml file. You don't need to understand every detail, but have a look at this file, what do you notice?
The tests are correct. They are failing because there are bugs in the code.
- Create a new branch
- Fix one of the problems, test by running the app and by running the tests on your computer
- Push your branch to GitHub and create a pull request
- Observe output from Actions in the pull request
- In the same branch, fix the other problem, test by running the app and by running the tests on your computer
- Push your branch to GitHub
- Observe output from Actions in the pull request