Skip to content

Commit a66384a

Browse files
committed
fix: remove flawed unit test test_invalid_issuer_bad_hostname
1 parent c76fa0b commit a66384a

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

test/credentials_test.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from unittest import IsolatedAsyncioTestCase
1515

1616
import openfga_sdk
17-
from openfga_sdk import ApiValueError
17+
from openfga_sdk.exceptions import ApiValueError
1818
from 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

237230
if __name__ == "__main__":
238231
unittest.main()

0 commit comments

Comments
 (0)