diff options
author | Michael Manfre | 2022-11-22 21:52:40 -0500 |
---|---|---|
committer | GitHub | 2022-11-22 19:52:40 -0700 |
commit | cdfff32f9af75730ca560833744433f1dc07067f (patch) | |
tree | d62719a4bd3269ec33f7bcde6c1a783fcef9792e /tests/conftest.py | |
parent | db0edcd2ae7ad3d191974a47b8c0da8c3fc31e80 (diff) | |
download | takahe-cdfff32f9af75730ca560833744433f1dc07067f.tar.gz takahe-cdfff32f9af75730ca560833744433f1dc07067f.tar.bz2 takahe-cdfff32f9af75730ca560833744433f1dc07067f.zip |
Content warning name customisation
Allows the name of Content Warning to be customized (e.g. to "Content Summary").
Fixes #28.
Diffstat (limited to 'tests/conftest.py')
-rw-r--r-- | tests/conftest.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/conftest.py b/tests/conftest.py index 536162c..69e8e7a 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -62,11 +62,16 @@ def config_system(keypair): @pytest.fixture @pytest.mark.django_db -def identity(): +def user() -> User: + return User.objects.create(email="test@example.com") + + +@pytest.fixture +@pytest.mark.django_db +def identity(user): """ Creates a basic test identity with a user and domain. """ - user = User.objects.create(email="test@example.com") domain = Domain.objects.create(domain="example.com", local=True, public=True) identity = Identity.objects.create( actor_uri="https://example.com/test-actor/", |