Skip to content

Commit 9d13abb

Browse files
committed
🐛 [Tests] Fix: Correct indentation and syntax in user ID and product name generation fixtures
1 parent 0246cf0 commit 9d13abb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

services/api-server/tests/unit/_with_db/conftest.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,9 @@ async def _generate_user_ids(n: PositiveInt) -> AsyncGenerator[PositiveInt, None
211211
)
212212
assert uid
213213

214-
_generate_user_ids.generated_ids.append(uid)
214+
_generate_user_ids.generated_ids.append(uid)
215215

216-
yield uid
216+
yield uid
217217

218218
_generate_user_ids.generated_ids = []
219219

@@ -236,7 +236,7 @@ async def _generate_product_names(
236236
product = random_product(group_id=None)
237237
async with async_engine.connect() as conn:
238238
result = await conn.execute(
239-
products.select().where(products.c.name == product["name"])
239+
products.select().where(products.c.name == product["name"]),
240240
)
241241
entry = result.one_or_none()
242242
if entry is None:
@@ -274,6 +274,7 @@ async def _generate_fake_api_key(n: PositiveInt):
274274
for _ in range(n):
275275
product = await anext(products)
276276
user = await anext(users)
277+
277278
api_auth = random_api_auth(product, user)
278279
plain_api_secret = api_auth.pop("api_secret")
279280

0 commit comments

Comments
 (0)