Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronan committed Jul 13, 2024
1 parent 12e4258 commit 10f9f7e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/app/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ async def init_db() -> None:
organization_id = organization.id

Check warning on line 47 in src/app/db.py

View check run for this annotation

Codecov / codecov/patch

src/app/db.py#L47

Added line #L47 was not covered by tests

# Check if admin exists
statement = select(User).where(User.login == settings.SUPERADMIN_LOGIN) # type: ignore[var-annotated]
statement = select(User).where(User.login == settings.SUPERADMIN_LOGIN)

Check warning on line 50 in src/app/db.py

View check run for this annotation

Codecov / codecov/patch

src/app/db.py#L50

Added line #L50 was not covered by tests
results = await session.exec(statement=statement)
user = results.one_or_none()
if not user:
Expand Down
8 changes: 4 additions & 4 deletions src/tests/endpoints/test_organizations.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
),
],
)
@pytest.mark.asyncio()
@pytest.mark.asyncio
async def test_create_organization(
async_client: AsyncClient,
user_idx: Union[int, None],
Expand Down Expand Up @@ -69,7 +69,7 @@ async def test_create_organization(
(2, 1, 403, "Incompatible token scope.", 0),
],
)
@pytest.mark.asyncio()
@pytest.mark.asyncio
async def test_get_organization(
async_client: AsyncClient,
organization_session: AsyncSession,
Expand Down Expand Up @@ -105,7 +105,7 @@ async def test_get_organization(
(2, 403, "Incompatible token scope.", None),
],
)
@pytest.mark.asyncio()
@pytest.mark.asyncio
async def test_fetch_organizations(
async_client: AsyncClient,
organization_session: AsyncSession,
Expand Down Expand Up @@ -140,7 +140,7 @@ async def test_fetch_organizations(
(2, 2, 403, "Incompatible token scope."),
],
)
@pytest.mark.asyncio()
@pytest.mark.asyncio
async def test_delete_organization(
async_client: AsyncClient,
organization_session: AsyncSession,
Expand Down

0 comments on commit 10f9f7e

Please sign in to comment.