From d15f879600e93853b46a2633cf865885eca090c4 Mon Sep 17 00:00:00 2001 From: Michael Grosse Huelsewiesche Date: Fri, 21 Feb 2025 10:09:29 -0500 Subject: [PATCH] Proxy datatype was wrong in test --- segment/analytics/test/test_client.py | 2 +- segment/analytics/test/test_consumer.py | 2 +- segment/analytics/test/test_request.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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)