: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.
: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.