Fixes register tests

This commit is contained in:
Mouse Reeve 2022-02-17 13:27:44 -08:00
parent be479fe4cb
commit 08e378a539
2 changed files with 2 additions and 2 deletions

View file

@ -37,7 +37,7 @@ class RegisterViews(TestCase):
self.anonymous_user.is_authenticated = False
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, *_):

View file

@ -60,7 +60,7 @@ urlpatterns = [
),
# instance 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
re_path(r"^login/?$", views.Login.as_view(), name="login"),
re_path(r"^login/(?P<confirmed>confirmed)/?$", views.Login.as_view(), name="login"),