Skip to content

Commit

Permalink
Merge branch 'develop' into feature-645
Browse files Browse the repository at this point in the history
  • Loading branch information
josephmancuso committed Mar 24, 2019
2 parents 7ed369f + 17fec7a commit e33c277
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,11 @@ def test_view_should_return_a_json_response_when_retrieve_a_user_from_model(self
assert isinstance(MockUser(), Model)
self.response.view(MockUser().all())

json_response = '[{"name": "TestUser", "email": "user@email.com"}, {"name": "TestUser", "email": "user@email.com"}]'
assert '"name": "TestUser"' in self.app.make('Response')
assert '"email": "user@email.com"' in self.app.make('Response')

self.response.view(MockUser().find(1))

json_response = '{"name": "TestUser", "email": "user@email.com"}'
assert self.app.make('Response') == json_response
assert '"name": "TestUser"' in self.app.make('Response')
assert '"email": "user@email.com"' in self.app.make('Response')

0 comments on commit e33c277

Please sign in to comment.