Release v1.0.0rc1
Some checks failed
CI / Checks (push) Has been cancelled

This commit is contained in:
2025-08-18 07:09:27 +02:00
commit d909391ee6
383 changed files with 22792 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
# -*- coding: utf-8 -*-
# type: ignore
from __future__ import annotations
import pytest
@pytest.fixture
def account_password():
return 'thisisntright'
@pytest.fixture
def account():
from hotpocket_backend_testing.factories.accounts import AccountFactory
return AccountFactory()
@pytest.fixture
def federated_account():
from hotpocket_backend.apps.accounts.models import Account
from hotpocket_backend_testing.factories.accounts import AccountFactory
result: Account = AccountFactory()
result.set_unusable_password()
result.save()
return result
@pytest.fixture
def account_with_password(account, account_password):
account.set_password(account_password)
account.save()
return account
@pytest.fixture
def inactive_account():
from hotpocket_backend_testing.factories.accounts import AccountFactory
return AccountFactory(is_active=False)
@pytest.fixture
def other_account():
from hotpocket_backend_testing.factories.accounts import AccountFactory
return AccountFactory()