File tree Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Original file line number Diff line number Diff line change 11import logging
2- import sys
32import typing
43from datetime import datetime
54from urllib .parse import urljoin
65
76import requests
87from flag_engine import engine
98from requests .adapters import HTTPAdapter
10- from requests .utils import default_user_agent
119from urllib3 import Retry
1210
1311from flagsmith .analytics import AnalyticsProcessor
3432
3533DEFAULT_API_URL = "https://edge.api.flagsmith.com/api/v1/"
3634DEFAULT_REALTIME_API_URL = "https://realtime.flagsmith.com/"
37- DEFAULT_USER_AGENT = (
38- f"flagsmith-python-client/{ __version__ } "
39- + default_user_agent ()
40- + f" python/{ sys .version_info .major } .{ sys .version_info .minor } "
41- )
35+ DEFAULT_USER_AGENT = f"flagsmith-python-sdk/{ __version__ } "
4236
4337
4438class Flagsmith :
Original file line number Diff line number Diff line change 11import json
2- import sys
32import time
43import typing
54
@@ -817,10 +816,7 @@ def test_flagsmith__init__expected_headers_sent(
817816 # Then
818817 headers = responses .calls [0 ].request .headers
819818 assert headers == {
820- "User-Agent" : (
821- f"flagsmith-python-client/{ __version__ } python-requests/{ requests .__version__ } "
822- f"python/{ sys .version_info .major } .{ sys .version_info .minor } "
823- ),
819+ "User-Agent" : f"flagsmith-python-sdk/{ __version__ } " ,
824820 "Accept-Encoding" : "gzip, deflate" ,
825821 "Accept" : "*/*" ,
826822 "Connection" : "keep-alive" ,
You can’t perform that action at this time.
0 commit comments