From b2dea5603773456f96b138b3e4a05564e8d964af Mon Sep 17 00:00:00 2001 From: Samuel Havron Date: Thu, 6 Oct 2016 19:52:31 -0400 Subject: [PATCH] added db fixtures to test workflow --- models/daasapp/tests/test_users.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/models/daasapp/tests/test_users.py b/models/daasapp/tests/test_users.py index a0e439e..fb831b0 100644 --- a/models/daasapp/tests/test_users.py +++ b/models/daasapp/tests/test_users.py @@ -24,6 +24,7 @@ def tearDown(self): class InspectUserTestCase(TestCase): + fixtures = ['db'] # load from DB def setUp(self): pass @@ -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))