From 28e433e24a8ec5b87a142b0bb7b7166fc84cd1c7 Mon Sep 17 00:00:00 2001 From: Dan Schultz <slifty@gmail.com> Date: Tue, 15 Feb 2022 15:55:28 -0500 Subject: [PATCH] Fix AdminFactory The `AdminFactory` had a bug: `is_admin` is not a field, but `is_superuser` is. No tests were using the factory so this went unnoticed, but I'm about to want to use it. --- hypha/apply/users/tests/factories.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hypha/apply/users/tests/factories.py b/hypha/apply/users/tests/factories.py index 0fd7c721a..9d5e925d9 100644 --- a/hypha/apply/users/tests/factories.py +++ b/hypha/apply/users/tests/factories.py @@ -48,7 +48,7 @@ class OAuthUserFactory(UserFactory): class AdminFactory(UserFactory): - is_admin = True + is_superuser = True class StaffFactory(OAuthUserFactory): -- GitLab