Skip to content

Commit

Permalink
use different url
Browse files Browse the repository at this point in the history
  • Loading branch information
lbalmaceda committed May 8, 2020
1 parent d60f10f commit 48fee0b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions auth0/v3/test/authentication/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,10 @@ def test_get_can_timeout(self):
ab = AuthenticationBase('auth0.com', timeout=0.00001)

with self.assertRaises(requests.exceptions.Timeout):
ab.get('https://auth0.com', params={'a': 'b'}, headers={'c': 'd'})
ab.get('https://google.com', params={'a': 'b'}, headers={'c': 'd'})

def test_post_can_timeout(self):
ab = AuthenticationBase('auth0.com', timeout=0.00001)

with self.assertRaises(requests.exceptions.Timeout):
ab.post('https://auth0.com', data={'a': 'b'}, headers={'c': 'd'})
ab.post('https://google.com', data={'a': 'b'}, headers={'c': 'd'})
10 changes: 5 additions & 5 deletions auth0/v3/test/management/test_rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,31 +16,31 @@ def test_get_can_timeout(self):
rc = RestClient(jwt='a-token', telemetry=False, timeout=0.00001)

with self.assertRaises(requests.exceptions.Timeout):
rc.get('http://auth0.com')
rc.get('http://google.com')

def test_post_can_timeout(self):
rc = RestClient(jwt='a-token', telemetry=False, timeout=0.00001)

with self.assertRaises(requests.exceptions.Timeout):
rc.post('http://auth0.com')
rc.post('http://google.com')

def test_put_can_timeout(self):
rc = RestClient(jwt='a-token', telemetry=False, timeout=0.00001)

with self.assertRaises(requests.exceptions.Timeout):
rc.put('http://auth0.com')
rc.put('http://google.com')

def test_patch_can_timeout(self):
rc = RestClient(jwt='a-token', telemetry=False, timeout=0.00001)

with self.assertRaises(requests.exceptions.Timeout):
rc.patch('http://auth0.com')
rc.patch('http://google.com')

def test_delete_can_timeout(self):
rc = RestClient(jwt='a-token', telemetry=False, timeout=0.00001)

with self.assertRaises(requests.exceptions.Timeout):
rc.delete('http://auth0.com')
rc.delete('http://google.com')

@mock.patch('requests.get')
def test_get_custom_timeout(self, mock_get):
Expand Down

0 comments on commit 48fee0b

Please sign in to comment.