Skip to content

Commit

Permalink
Full App.py Coverage and Test
Browse files Browse the repository at this point in the history
  • Loading branch information
super3 committed Aug 25, 2015
1 parent 7028428 commit 321f6b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_App.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,13 @@ def test_online(self):
# see if that address is in the online status
self.assertTrue(addresses["alpha"] in str(rv.data))

def test_farmer_json(self):
def test_farmer_json(self): # test could be better
rv = self.app.get('/api/register/{0}'.format(addresses["beta"]))
self.assertEqual(rv.status_code, 200)

# get online json data
rv = self.app.get('/api/online/json')

self.assertTrue(addresses["beta"] in str(rv.data))

def test_farmer_order(self):
addr1 = '191GVvAaTRxLmz3rW3nU5jAV1rF186VxQc'
Expand Down

0 comments on commit 321f6b2

Please sign in to comment.