ColtonProvias / sqlalchemy-jsonapi

JSONAPI implementation for use with SQLAlchemy
MIT License
71 stars 27 forks source link

Add more tests for post collection #45

Closed kaitj91 closed 7 years ago

kaitj91 commented 7 years ago

This PR adds more tests to post_collection. I missed the attr_descriptors and also some BadRequestErrors. Through this I found two issues in the library #44 and #43 Due to these issues is why I have identified some no coverage portions in the serializer. I also changed some of the names of the tests to identify one-to-many and many-to-one relationships when creating resources since they hit two different chunks of code in post_collection.

Coverage with this PR is at 54%

rockstar commented 7 years ago

👍