mirror of
https://github.com/hydrosquall/tiingo-python.git
synced 2025-12-18 04:14:20 +01:00
Patch testing for /funds endpoint
This commit is contained in:
@@ -30,10 +30,9 @@ class TestRestClient(TestCase):
|
||||
|
||||
# Test 404 error
|
||||
def test_invalid_url(self):
|
||||
with self.assertRaisesRegexp(RestClientError, "404") as context:
|
||||
with self.assertRaisesRegexp(RestClientError, "404"):
|
||||
# Should return 404 error
|
||||
self._client._request('GET', "bing_is_great")
|
||||
print(context)
|
||||
|
||||
# Todo: try using an invalid HTTP method (i.e. SNAG) and catch the error
|
||||
|
||||
@@ -61,7 +60,6 @@ class TestRestClientWithSession(TestCase):
|
||||
|
||||
# Test 404 error
|
||||
def test_invalid_url(self):
|
||||
with self.assertRaisesRegexp(RestClientError, "404") as context:
|
||||
with self.assertRaisesRegexp(RestClientError, "404"):
|
||||
# Should return 404 error
|
||||
self._client._request('GET', "bing_is_great")
|
||||
print(context)
|
||||
|
||||
Reference in New Issue
Block a user