fix unit test

This commit is contained in:
Your Name 2024-07-01 18:00:55 -04:00 committed by Henri Dickson
parent 7b6c73b7d6
commit ac4f12c831

View file

@ -1,6 +1,7 @@
from django.conf import settings
from django.test import TestCase
from mastodon.models import MastodonAccount
from takahe.utils import Takahe
from .models import *
@ -13,6 +14,9 @@ class UserTest(TestCase):
self.alice = User.register(
mastodon_site="MySpace", mastodon_username="Alice", username="alice"
).identity
MastodonAccount.objects.create(
handle="Alice@MySpace", user=self.alice.user, domain="MySpace", uid="42"
)
self.bob = User.register(
mastodon_site="KKCity", mastodon_username="Bob", username="bob"
).identity