Skip to content

Commit a2db8d8

Browse files
authored
Proxy datatype was wrong in test (#504)
1 parent c8e4c56 commit a2db8d8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

segment/analytics/test/test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,6 @@ def test_default_timeout_15(self):
344344
self.assertEqual(consumer.timeout, 15)
345345

346346
def test_proxies(self):
347-
client = Client('testsecret', proxies='203.243.63.16:80')
347+
client = Client('testsecret', proxies={'http':'203.243.63.16:80','https':'203.243.63.16:80'})
348348
success, msg = client.identify('userId', {'trait': 'value'})
349349
self.assertTrue(success)

segment/analytics/test/test_consumer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def mock_post_fn(_, data, **kwargs):
200200

201201
@classmethod
202202
def test_proxies(cls):
203-
consumer = Consumer(None, 'testsecret', proxies='203.243.63.16:80')
203+
consumer = Consumer(None, 'testsecret', proxies={'http':'203.243.63.16:80','https':'203.243.63.16:80'})
204204
track = {
205205
'type': 'track',
206206
'event': 'python event',

segment/analytics/test/test_request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,6 @@ def test_proxies(self):
5757
'userId': 'userId',
5858
'event': 'python event',
5959
'type': 'track',
60-
'proxies': '203.243.63.16:80'
60+
'proxies': {'http':'203.243.63.16:80','https':'203.243.63.16:80'}
6161
}])
6262
self.assertEqual(res.status_code, 200)

0 commit comments

Comments
 (0)