Skip to content

Commit

Permalink
close api client
Browse files Browse the repository at this point in the history
  • Loading branch information
changhc committed Jan 1, 2025
1 parent 8f4cfa3 commit b37fe34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ class {{#operations}}Test{{classname}}(unittest.{{#asyncio}}IsolatedAsyncio{{/as
self.api = {{classname}}()

async def asyncTearDown(self) -> None:
pass
await self.api.api_client.close()
{{/asyncio}}
{{^asyncio}}
def setUp(self) -> None:
self.api = {{classname}}()

def tearDown(self) -> None:
pass
self.api.api_client.close()
{{/asyncio}}

{{#operation}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ class {{#operations}}Test{{classname}}(unittest.{{#asyncio}}IsolatedAsyncio{{/as
self.api = {{classname}}()

async def asyncTearDown(self) -> None:
pass
await self.api.api_client.close()
{{/asyncio}}
{{^asyncio}}
def setUp(self) -> None:
self.api = {{classname}}()

def tearDown(self) -> None:
pass
self.api.api_client.close()
{{/asyncio}}

{{#operation}}
Expand Down

0 comments on commit b37fe34

Please sign in to comment.