Permalink
Browse files

tests

  • Loading branch information...
akariv committed Mar 20, 2018
1 parent b509eb4 commit 7913a291df6a3f86b1e376095fc96294b7a7a901
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/module/blueprints/package/test_controllers.py
@@ -79,12 +79,12 @@ def test___load___good_request(self):
def test___callback___server_down(self):
api_load = module.upload
self.requests.get = Mock(return_value=Response(499))
self.assertResponse(api_load('bla', callback, token, cache_set), 'fail', error='HTTP 499')
self.assertResponse(api_load('bla', token, cache_get, cache_set), 'fail', error='HTTP 499')
def test___poll___good_request(self):
api_load = module.upload
self.requests.get = Mock(return_value=Response(200))
api_load('bla2', callback, token, cache_set)
api_load('bla2', token, cache_get, cache_set)
api_poll = module.upload_status
self.assertResponse(api_poll('bla2', cache_get), 'queued', 0)

0 comments on commit 7913a29

Please sign in to comment.