Skip to content

Commit

Permalink
added db fixtures to test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
havron committed Oct 6, 2016
1 parent 601fdde commit b2dea56
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion models/daasapp/tests/test_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def tearDown(self):


class InspectUserTestCase(TestCase):
fixtures = ['db'] # load from DB
def setUp(self):
pass

Expand All @@ -44,7 +45,7 @@ def test_user_attributes(self):
resp = json.loads(response.content.decode('utf8'))
self.assertEquals(response.status_code, 200)

response = c.get(reverse('inspect_user', kwargs={'user_id':1}))
response = c.get(reverse('inspect_user', kwargs={'user_id':201}))
resp = json.loads(response.content.decode('utf8'))

print("test_user_attributes GET " + str(resp))
Expand Down

0 comments on commit b2dea56

Please sign in to comment.