-
Notifications
You must be signed in to change notification settings - Fork 180
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
Improve test coverage #70
Conversation
|
||
class FieldsUnitTest(unittest.TestCase): | ||
def test_field_throws_if_no_data_passed_in(self): | ||
try: |
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.
Style preference nit, I like context mangers for the exception tests because self.fail somehow looks ugly to me.
with self.assertRasises(AttributeError, "Field should have thrown"):
Field()
🚀 Really minor comments. Can you post the coverage update %'s? Curious! |
Okay, I'll make those changes and send another update
|
Note: assertRaises does not take a message
🐓 🚀 🌕 Edit: Yeah, the msg argument is 3.3+, sorry :( |
Address some additional testing for #63