style: apply ruff formatting to new files
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
a65af90320
commit
d7cdedbd5f
6 changed files with 6 additions and 20 deletions
|
|
@ -5,7 +5,6 @@ from httpx import AsyncClient
|
|||
|
||||
from porchlight.authn.password import PasswordHasher, PasswordService
|
||||
from porchlight.models import PasswordCredential, User
|
||||
|
||||
from tests.conftest import get_csrf_token
|
||||
|
||||
|
||||
|
|
@ -34,9 +33,7 @@ async def _setup_admin_and_target(client: AsyncClient) -> tuple[str, str]:
|
|||
await user_repo.create(target)
|
||||
|
||||
svc = PasswordService(hasher=PasswordHasher(time_cost=1, memory_cost=8192))
|
||||
await cred_repo.create_password(
|
||||
PasswordCredential(user_id=admin.userid, password_hash=svc.hash("AdminPass123!"))
|
||||
)
|
||||
await cred_repo.create_password(PasswordCredential(user_id=admin.userid, password_hash=svc.hash("AdminPass123!")))
|
||||
|
||||
token = await get_csrf_token(client)
|
||||
await client.post(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue