Seed and bootstrap users via user_login.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alberto-AudrixandCursor committed 2026-09-08 16:17:29 +07:00
1 parent 4f0abceb20
commit 4eed6b2e87
9 files changed
+65 -43

No files matched your search

+5 -5
View File
@@ -10,19 +10,19 @@ class VisibilityScopeTests(TestCase):
def setUp(self):
self.client = APIClient()
self.director = User.objects.create_user(
user_name="dir1", password="x", status=User.STATUS_DIRECTOR
user_login="dir1", password="x", status=User.STATUS_DIRECTOR
)
self.buh = User.objects.create_user(
user_name="buh1", password="x", status=User.STATUS_BUH
user_login="buh1", password="x", status=User.STATUS_BUH
)
self.buh_other = User.objects.create_user(
user_name="buh2", password="x", status=User.STATUS_BUH
user_login="buh2", password="x", status=User.STATUS_BUH
)
self.gm = User.objects.create_user(
user_name="gm1", password="x", status=User.STATUS_GM, managed_by=self.buh
user_login="gm1", password="x", status=User.STATUS_GM, managed_by=self.buh
)
self.gm_other = User.objects.create_user(
user_name="gm2",
user_login="gm2",
password="x",
status=User.STATUS_GM,
managed_by=self.buh_other,