Skip to content

Commit

Permalink
cambio de nombre de test
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexis Wolfsdorf committed Oct 17, 2019
1 parent 4a9c72c commit b0ecf5b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/test_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,10 +295,11 @@ def test_validate_invalid_url(self, req_mock):
self.assertEqual((False, 400), is_working_url('http://test.com/'))

@requests_mock.Mocker()
def test_validate_locked_response(self, req_mock):
locked_status_code = 429
req_mock.head('http://test.com/', status_code=locked_status_code)
self.assertEqual((True, locked_status_code),
def test_validate_too_many_requests_response(self, req_mock):
too_many_request_status_code = 429
req_mock.head('http://test.com/',
status_code=too_many_request_status_code)
self.assertEqual((True, too_many_request_status_code),
is_working_url('http://test.com/'))

@requests_mock.Mocker()
Expand Down

0 comments on commit b0ecf5b

Please sign in to comment.