mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-26 11:31:08 +00:00
Fixes register tests
This commit is contained in:
parent
be479fe4cb
commit
08e378a539
2 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@ class RegisterViews(TestCase):
|
||||||
self.anonymous_user.is_authenticated = False
|
self.anonymous_user.is_authenticated = False
|
||||||
|
|
||||||
self.settings = models.SiteSettings.objects.create(
|
self.settings = models.SiteSettings.objects.create(
|
||||||
id=1, require_confirm_email=False
|
id=1, require_confirm_email=False, allow_registration=True
|
||||||
)
|
)
|
||||||
|
|
||||||
def test_get_redirect(self, *_):
|
def test_get_redirect(self, *_):
|
||||||
|
|
|
@ -60,7 +60,7 @@ urlpatterns = [
|
||||||
),
|
),
|
||||||
# instance setup
|
# instance setup
|
||||||
re_path(r"^setup/?$", views.InstanceConfig.as_view(), name="setup"),
|
re_path(r"^setup/?$", views.InstanceConfig.as_view(), name="setup"),
|
||||||
re_path(r"^setup/admin?$", views.CreateAdmin.as_view(), name="setup-admin"),
|
re_path(r"^setup/admin/?$", views.CreateAdmin.as_view(), name="setup-admin"),
|
||||||
# authentication
|
# authentication
|
||||||
re_path(r"^login/?$", views.Login.as_view(), name="login"),
|
re_path(r"^login/?$", views.Login.as_view(), name="login"),
|
||||||
re_path(r"^login/(?P<confirmed>confirmed)/?$", views.Login.as_view(), name="login"),
|
re_path(r"^login/(?P<confirmed>confirmed)/?$", views.Login.as_view(), name="login"),
|
||||||
|
|
Loading…
Reference in a new issue