fix: add missing commas for syntax correctness across multiple files
Test / test (push) Successful in 15s

This commit is contained in:
Artem Kashaev
2025-12-01 16:19:19 +05:00
parent ed6c656963
commit 1039fba571
23 changed files with 52 additions and 52 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ class Scenario:
async def prepare_scenario(session_factory: async_sessionmaker[AsyncSession]) -> Scenario:
async with session_factory() as session:
user = User(
email="owner@example.com", hashed_password="hashed", name="Owner", is_active=True
email="owner@example.com", hashed_password="hashed", name="Owner", is_active=True,
)
org = Organization(name="Acme LLC")
session.add_all([user, org])
+1 -1
View File
@@ -32,7 +32,7 @@ async def prepare_analytics_scenario(
async with session_factory() as session:
org = Organization(name="Analytics Org")
user = User(
email="analytics@example.com", hashed_password="hashed", name="Analyst", is_active=True
email="analytics@example.com", hashed_password="hashed", name="Analyst", is_active=True,
)
session.add_all([org, user])
await session.flush()
+7 -7
View File
@@ -61,7 +61,7 @@ async def test_list_user_organizations_returns_memberships(
) -> None:
async with session_factory() as session:
user = User(
email="owner@example.com", hashed_password="hashed", name="Owner", is_active=True
email="owner@example.com", hashed_password="hashed", name="Owner", is_active=True,
)
session.add(user)
await session.flush()
@@ -115,10 +115,10 @@ async def test_owner_can_add_member_to_organization(
) -> None:
async with session_factory() as session:
owner = User(
email="owner-add@example.com", hashed_password="hashed", name="Owner", is_active=True
email="owner-add@example.com", hashed_password="hashed", name="Owner", is_active=True,
)
invitee = User(
email="new-member@example.com", hashed_password="hashed", name="Member", is_active=True
email="new-member@example.com", hashed_password="hashed", name="Member", is_active=True,
)
session.add_all([owner, invitee])
await session.flush()
@@ -220,10 +220,10 @@ async def test_member_role_cannot_add_users(
) -> None:
async with session_factory() as session:
member_user = User(
email="member@example.com", hashed_password="hashed", name="Member", is_active=True
email="member@example.com", hashed_password="hashed", name="Member", is_active=True,
)
invitee = User(
email="invitee@example.com", hashed_password="hashed", name="Invitee", is_active=True
email="invitee@example.com", hashed_password="hashed", name="Invitee", is_active=True,
)
session.add_all([member_user, invitee])
await session.flush()
@@ -266,10 +266,10 @@ async def test_cannot_add_duplicate_member(
) -> None:
async with session_factory() as session:
owner = User(
email="dup-owner@example.com", hashed_password="hashed", name="Owner", is_active=True
email="dup-owner@example.com", hashed_password="hashed", name="Owner", is_active=True,
)
invitee = User(
email="dup-member@example.com", hashed_password="hashed", name="Invitee", is_active=True
email="dup-member@example.com", hashed_password="hashed", name="Invitee", is_active=True,
)
session.add_all([owner, invitee])
await session.flush()