Skip to content

Commit

Permalink
flake8 for tests geopython#15
Browse files Browse the repository at this point in the history
  • Loading branch information
cezio committed Mar 2, 2018
1 parent af38224 commit 23143cb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/test_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,17 +113,15 @@ def testNotificationsApi(self):
self.assertEqual(q.count(), 0)

def testWebhookNotifications(self):
Rcp = Recipient

r = Resource.query.first()

lhost = 'http://localhost:8000/'

# identifier, url, params, no error
test_data = (('', None, None, False,),
('http://localhost:8000/', lhost, {}, True,),
('http://localhost:8000/\n\n', lhost, {}, True,),
('http://localhost:8000/\n\ntest=true', lhost, {'test': 'true'}, True,),
('http://localhost:8000/\n\ntest=true', lhost,
{'test': 'true'}, True,),
)

for identifier, url, params, success in test_data:
Expand Down

0 comments on commit 23143cb

Please sign in to comment.