Skip to content

Commit ff0f932

Browse files
committed
[qa] Fixed mypy violations
1 parent 767cdee commit ff0f932

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

tests/integration/aio/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ async def client():
3737
client = AsyncAtlanClient()
3838
yield client
3939

40+
4041
@pytest_asyncio.fixture(scope="module")
4142
async def token_client():
4243
"""Async Atlan client fixture for api token integration tests."""

tests/integration/aio/test_client.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,18 +87,24 @@ async def token(token_client: AsyncAtlanClient) -> AsyncGenerator[ApiToken, None
8787

8888

8989
@pytest_asyncio.fixture(scope="module")
90-
async def expired_token(token_client: AsyncAtlanClient) -> AsyncGenerator[ApiToken, None]:
90+
async def expired_token(
91+
token_client: AsyncAtlanClient,
92+
) -> AsyncGenerator[ApiToken, None]:
9193
token = None
9294
try:
93-
token = await token_client.token.create(f"{MODULE_NAME}-expired", validity_seconds=1)
95+
token = await token_client.token.create(
96+
f"{MODULE_NAME}-expired", validity_seconds=1
97+
)
9498
time.sleep(5)
9599
yield token
96100
finally:
97101
await delete_token_async(token_client, token)
98102

99103

100104
@pytest_asyncio.fixture(scope="module")
101-
async def argo_fake_token(token_client: AsyncAtlanClient) -> AsyncGenerator[ApiToken, None]:
105+
async def argo_fake_token(
106+
token_client: AsyncAtlanClient,
107+
) -> AsyncGenerator[ApiToken, None]:
102108
token = None
103109
try:
104110
token = await token_client.token.create(f"{MODULE_NAME}-fake-argo")

tests/integration/client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def client() -> Generator[AtlanClient, None, None]:
3232

3333
yield client
3434

35+
3536
@pytest.fixture(scope="module")
3637
def token_client() -> Generator[AtlanClient, None, None]:
3738
DEFAULT_RETRY.total = 0

0 commit comments

Comments
 (0)