@@ -21,15 +21,6 @@ def setup_with_client_id(self, set_api_key_and_client_id):
2121
2222 self .sso = SSO ()
2323
24- @pytest .fixture
25- def setup_with_project_id (self , set_api_key_and_project_id ):
26- self .provider = ConnectionType .GoogleOAuth
27- self .customer_domain = "workos.com"
28- self .redirect_uri = "https://localhost/auth/callback"
29- self .state = json .dumps ({"things" : "with_stuff" })
30-
31- self .sso = SSO ()
32-
3324 @pytest .fixture
3425 def mock_profile (self ):
3526 return {
@@ -194,28 +185,6 @@ def test_authorization_url_has_expected_query_params_with_domain_and_provider(
194185 "state" : self .state ,
195186 }
196187
197- def test_authorization_url_supports_project_id_with_deprecation_warning (
198- self , setup_with_project_id
199- ):
200- with pytest .deprecated_call ():
201- authorization_url = self .sso .get_authorization_url (
202- domain = self .customer_domain ,
203- provider = self .provider ,
204- redirect_uri = self .redirect_uri ,
205- state = self .state ,
206- )
207-
208- parsed_url = urlparse (authorization_url )
209-
210- assert dict (parse_qsl (parsed_url .query )) == {
211- "domain" : self .customer_domain ,
212- "provider" : str (self .provider .value ),
213- "client_id" : workos .project_id ,
214- "redirect_uri" : self .redirect_uri ,
215- "response_type" : RESPONSE_TYPE_CODE ,
216- "state" : self .state ,
217- }
218-
219188 def test_get_profile_returns_expected_workosprofile_object (
220189 self , setup_with_client_id , mock_profile , mock_request_method
221190 ):
0 commit comments