Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write unit tests for attendance view in volunteers app #78

Open
garg3133 opened this issue Jan 25, 2021 · 8 comments
Open

Write unit tests for attendance view in volunteers app #78

garg3133 opened this issue Jan 25, 2021 · 8 comments

Comments

@garg3133
Copy link
Owner

Write unit tests for attendance view in the volunteers app. The tests need to be added in a file test_views in test directory of volunteers app.

To learn about how to write unit tests in Django, you may follow this tutorial from MDN: https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Testing

For any further doubts and queries, feel free to join the community and ask there: https://discord.gg/Ek9q45ZjAv

@vismitap
Copy link
Contributor

vismitap commented Feb 9, 2021

Hey! May I try this issue?

@garg3133
Copy link
Owner Author

garg3133 commented Feb 9, 2021

Hey, sure go ahead. Assigning you the issue.

@vismitap
Copy link
Contributor

Write unit tests for attendance view in the volunteers app. The tests need to be added in a file test_views in test directory of volunteers app.

To learn about how to write unit tests in Django, you may follow this tutorial from MDN: https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Testing

For any further doubts and queries, feel free to join the community and ask there: https://discord.gg/Ek9q45ZjAv

This is the directory structure right now
image

So, just wanted to confirm that I should create a new folder called test and a file called test_views and not touch already present tests.py right? The tests.py is empty for all apps currently.

@garg3133
Copy link
Owner Author

You can delete the already present tests file.

@vismitap
Copy link
Contributor

You can delete the already present tests file.

Okay! I will start working👍. I will try to raise a PR by tomorrow...still trying to learn testing😅.

@subhangi2731
Copy link
Contributor

can you please assign me this ??

@subhangi2731
Copy link
Contributor

please assign me this

@harshakhmk
Copy link
Contributor

Can I work on this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Issue Tracker
Open Issues
Development

No branches or pull requests

4 participants