williamflaherty / pearing

KCSW project
Other
1 stars 0 forks source link

Test improvements and bug fix #22

Closed Mimimiel closed 9 years ago

Mimimiel commented 9 years ago

:gift_heart: I bring the gift of more tests. :gift_heart:

Wrote register_person and update_person tests. Extended the base test classes and utils to make future testing easier, including loading fixtures to fulfill #1. Updated serializers.py to make testing easier, and because the views will later leverage the fields/exclude options.

Updated controller.py and views.py to handle a bug where PersonSerializer would throw up an exception when an error code and an empty person dict was returned from the controllers. It was throwing off the tests, so I folded in the fix here instead of in a separate issue.

danielcash commented 9 years ago

Awesome! :+1: