@@ -3901,17 +3901,9 @@ def client_configuration():
39013901 )
39023902
39033903
3904- class TestClientConfigurationHeaders ( IsolatedAsyncioTestCase ) :
3904+ class TestClientConfigurationHeaders :
39053905 """Tests for ClientConfiguration headers parameter"""
39063906
3907- def setUp (self ):
3908- self .configuration = ClientConfiguration (
3909- api_url = "http://api.fga.example" ,
3910- )
3911-
3912- def tearDown (self ):
3913- pass
3914-
39153907 def test_client_configuration_headers_default_none (self , client_configuration ):
39163908 """Test that headers default to an empty dict in ClientConfiguration"""
39173909 assert client_configuration .headers == {}
@@ -3975,6 +3967,7 @@ def test_client_configuration_headers_deepcopy(self):
39753967 assert "X-New" not in copied_config .headers
39763968
39773969 @patch .object (rest .RESTClientObject , "request" )
3970+ @pytest .mark .asyncio
39783971 async def test_write_with_conflict_options_ignore_duplicates (self , mock_request ):
39793972 """Test case for write with conflict options - ignore duplicates"""
39803973 from openfga_sdk .client .models .write_conflict_opts import (
@@ -3984,6 +3977,9 @@ async def test_write_with_conflict_options_ignore_duplicates(self, mock_request)
39843977
39853978 response_body = "{}"
39863979 mock_request .return_value = mock_response (response_body , 200 )
3980+ self .configuration = ClientConfiguration (
3981+ api_url = "http://api.fga.example" ,
3982+ )
39873983 configuration = self .configuration
39883984 configuration .store_id = store_id
39893985 async with OpenFgaClient (configuration ) as api_client :
@@ -4029,6 +4025,7 @@ async def test_write_with_conflict_options_ignore_duplicates(self, mock_request)
40294025 )
40304026
40314027 @patch .object (rest .RESTClientObject , "request" )
4028+ @pytest .mark .asyncio
40324029 async def test_write_with_conflict_options_ignore_missing_deletes (
40334030 self , mock_request
40344031 ):
@@ -4040,6 +4037,9 @@ async def test_write_with_conflict_options_ignore_missing_deletes(
40404037
40414038 response_body = "{}"
40424039 mock_request .return_value = mock_response (response_body , 200 )
4040+ self .configuration = ClientConfiguration (
4041+ api_url = "http://api.fga.example" ,
4042+ )
40434043 configuration = self .configuration
40444044 configuration .store_id = store_id
40454045 async with OpenFgaClient (configuration ) as api_client :
@@ -4085,6 +4085,7 @@ async def test_write_with_conflict_options_ignore_missing_deletes(
40854085 )
40864086
40874087 @patch .object (rest .RESTClientObject , "request" )
4088+ @pytest .mark .asyncio
40884089 async def test_write_with_conflict_options_both (self , mock_request ):
40894090 """Test case for write with both conflict options"""
40904091 from openfga_sdk .client .models .write_conflict_opts import (
@@ -4095,6 +4096,9 @@ async def test_write_with_conflict_options_both(self, mock_request):
40954096
40964097 response_body = "{}"
40974098 mock_request .return_value = mock_response (response_body , 200 )
4099+ self .configuration = ClientConfiguration (
4100+ api_url = "http://api.fga.example" ,
4101+ )
40984102 configuration = self .configuration
40994103 configuration .store_id = store_id
41004104 async with OpenFgaClient (configuration ) as api_client :
0 commit comments