This commit is contained in:
2024-07-05 09:46:08 +03:00
parent 2fa37c54b1
commit 36b6dd279a
2 changed files with 3 additions and 4 deletions

View File

@@ -28,7 +28,6 @@ class BaseMarketplaceApi(ABC):
async def _method(self, http_method: Literal['POST', 'GET', 'PATCH', 'PUT', 'DELETE'], async def _method(self, http_method: Literal['POST', 'GET', 'PATCH', 'PUT', 'DELETE'],
method: str, method: str,
data: dict) -> ClientResponse: data: dict) -> ClientResponse:
return
async with aiohttp.ClientSession() as session: async with aiohttp.ClientSession() as session:
return await session.request(http_method, return await session.request(http_method,
f'{self.api_url}{method}', f'{self.api_url}{method}',

View File

@@ -62,9 +62,9 @@ async def test():
start = time.time() start = time.time()
await asyncio.gather(*[ await asyncio.gather(*[
test1(), test1(),
test2(), # test2(),
test3(), # test3(),
test4(), # test4(),
# test5(), # test5(),
# test6(), # test6(),
]) ])