File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414from unittest import IsolatedAsyncioTestCase
1515
1616import openfga_sdk
17- from openfga_sdk import ApiValueError
17+ from openfga_sdk . exceptions import ApiValueError
1818from openfga_sdk .credentials import CredentialConfiguration , Credentials
1919
2020
@@ -226,13 +226,6 @@ def test_invalid_issuer_with_port(self):
226226 result = self .credentials ._parse_issuer (self .configuration .api_issuer )
227227 self .assertEqual (result , "https://issuer.fga.example:8080/oauth/token" )
228228
229- # this should raise error
230- def test_invalid_issuer_bad_hostname (self ):
231- # Test an issuer with an invalid hostname
232- self .configuration .api_issuer = "https://example?.com"
233- with self .assertRaises (ApiValueError ):
234- self .credentials ._parse_issuer (self .configuration .api_issuer )
235-
236229
237230if __name__ == "__main__" :
238231 unittest .main ()
You can’t perform that action at this time.
0 commit comments