diff --git a/segment/analytics/test/test_client.py b/segment/analytics/test/test_client.py index bffdb1e..87dc63a 100644 --- a/segment/analytics/test/test_client.py +++ b/segment/analytics/test/test_client.py @@ -344,6 +344,6 @@ def test_default_timeout_15(self): self.assertEqual(consumer.timeout, 15) def test_proxies(self): - client = Client('testsecret', proxies='203.243.63.16:80') + client = Client('testsecret', proxies={'http':'203.243.63.16:80','https':'203.243.63.16:80'}) success, msg = client.identify('userId', {'trait': 'value'}) self.assertTrue(success) diff --git a/segment/analytics/test/test_consumer.py b/segment/analytics/test/test_consumer.py index 4a2a1e2..f60f20e 100644 --- a/segment/analytics/test/test_consumer.py +++ b/segment/analytics/test/test_consumer.py @@ -200,7 +200,7 @@ def mock_post_fn(_, data, **kwargs): @classmethod def test_proxies(cls): - consumer = Consumer(None, 'testsecret', proxies='203.243.63.16:80') + consumer = Consumer(None, 'testsecret', proxies={'http':'203.243.63.16:80','https':'203.243.63.16:80'}) track = { 'type': 'track', 'event': 'python event', diff --git a/segment/analytics/test/test_request.py b/segment/analytics/test/test_request.py index 3f40c49..9a49666 100644 --- a/segment/analytics/test/test_request.py +++ b/segment/analytics/test/test_request.py @@ -57,6 +57,6 @@ def test_proxies(self): 'userId': 'userId', 'event': 'python event', 'type': 'track', - 'proxies': '203.243.63.16:80' + 'proxies': {'http':'203.243.63.16:80','https':'203.243.63.16:80'} }]) self.assertEqual(res.status_code, 200)