@@ -34,72 +34,21 @@ class TokenBasedPaginationRequest(BaseModel):
3434 page_token : str = None
3535
3636
37- def configure_origin (
38- sinch_client ,
39- numbers_origin ,
40- conversation_origin ,
41- auth_origin ,
42- sms_origin
43- ):
44- if auth_origin :
45- sinch_client .configuration .auth_origin = auth_origin
46-
47- if numbers_origin :
48- sinch_client .configuration .numbers_origin = numbers_origin
49-
50- if conversation_origin :
51- sinch_client .configuration .conversation_origin = conversation_origin
52-
53- if sms_origin :
54- sinch_client .configuration .sms_origin = sms_origin
55- sinch_client .configuration .sms_origin_with_service_plan_id = sms_origin
56-
57- return sinch_client
58-
59-
6037@pytest .fixture
6138def key_id ():
62- return os .getenv ("KEY_ID" )
63-
39+ return "test_key_id"
6440
6541@pytest .fixture
6642def key_secret ():
67- return os .getenv ("KEY_SECRET" )
68-
43+ return "test_key_secret"
6944
7045@pytest .fixture
7146def project_id ():
72- return os .getenv ("PROJECT_ID" )
73-
74-
75- @pytest .fixture
76- def numbers_origin ():
77- return os .getenv ("NUMBERS_ORIGIN" )
78-
79-
80- @pytest .fixture
81- def conversation_origin ():
82- return os .getenv ("CONVERSATION_ORIGIN" )
83-
84-
85- @pytest .fixture
86- def auth_origin ():
87- return os .getenv ("AUTH_ORIGIN" )
88-
89-
90- @pytest .fixture
91- def sms_origin ():
92- return os .getenv ("SMS_ORIGIN" )
93-
94-
95- @pytest .fixture
96- def disable_ssl ():
97- return os .getenv ("DISABLE_SSL" )
98-
47+ return "test_project_id"
9948
10049@pytest .fixture
10150def service_plan_id ():
102- return os . getenv ( "SERVICE_PLAN_ID" )
51+ return "test_service_plan_id"
10352
10453@pytest .fixture
10554def http_response ():
@@ -155,29 +104,17 @@ def sms_pagination_request_data_with_page_and_page_size_none():
155104 return SMSBasePaginationRequest ()
156105
157106
158-
159107@pytest .fixture
160108def sinch_client_sync (
161109 key_id ,
162110 key_secret ,
163- numbers_origin ,
164- conversation_origin ,
165- auth_origin ,
166- sms_origin ,
167111 project_id
168112):
169- return configure_origin (
170- SinchClient (
113+ return SinchClient (
171114 key_id = key_id ,
172115 key_secret = key_secret ,
173116 project_id = project_id
174- ),
175- numbers_origin ,
176- conversation_origin ,
177- auth_origin ,
178- sms_origin
179- )
180-
117+ )
181118
182119@pytest .fixture
183120def mock_sinch_client_numbers ():
0 commit comments