Open ricco386 opened 3 years ago
Hi, I'm new to contributing and I like this proposal so I would like to help if it's OK. I think I should be assigned to it ? 😁
Hey! I would like to contribute to the issue.
Thanks @BodaleDenis I have assigned the story to you, since you were first. I have updated the contributing file with tests section: https://github.com/vault19/django-courses/blob/main/contributing.rst#testing-setup it is short but if you have question or comments feel free to discuss here or add update to the file as a PR.
@biswain2309 thanks for your interest, if you are still interested I have create another issue regards testing: #33 that is suitable for beginners. I will keep adding more issues, if you are interested. Help is always welcome.
How to write and run tests is described in
README.rst: https://github.com/vault19/django-courses#testingcontributing.rst: https://github.com/vault19/django-courses/blob/main/contributing.rst#testing-setupWrite unit test that will check all the views in
views.py
. For pages that doesnt require login just check that they return correct response code, for both logged in user and also not logged in user.Make sure that views that are decorated with
@login_required
will not allow user that is not logged in and allow only logged in users.