-
Notifications
You must be signed in to change notification settings - Fork 8
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
Adding Choice model and votes #85
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can delete @ pytest.mark.django_db () above the function in lines:
331, 337, 348, 356 ,364
9962ecc
to
f630622
Compare
- Adding a Choice model that stores choice options of a poll and votes - Adding tests
@@ -0,0 +1,514 @@ | |||
import pytest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe we moved the tests out from posts
to Resume/tests/posts_tests.py
def test_pollFile_invalid_args(self, poll, choice_text, expected_error): | ||
with pytest.raises(expected_error): | ||
PollFile(poll=poll, file=choice_text) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we try to create PollFile
?
Shouldn't we try to create Choice
?
Adding migrations
fix #53
Dependant on #52