Support multiple possible fields that indicate user ownership

This commit is contained in:
Mouse Reeve
2021-08-28 12:08:24 -07:00
parent 9c4fd1e602
commit a5dcc0e5e4
2 changed files with 3 additions and 1 deletions

View File

@ -11,6 +11,7 @@ from bookwyrm.settings import USE_HTTPS, DOMAIN
# pylint: disable=missing-function-docstring
class User(TestCase):
protocol = "https://" if USE_HTTPS else "http://"
def setUp(self):
with patch("bookwyrm.suggested_users.rerank_suggestions_task.delay"):
self.user = models.User.objects.create_user(