MCPcopy Index your code
hub / github.com/Flagsmith/flagsmith / create_ffadminuser

Method create_ffadminuser

api/util/tests.py:37–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35
36 @staticmethod
37 def create_ffadminuser(): # type: ignore[no-untyped-def]
38 Helper.clean_up() # type: ignore[no-untyped-call]
39 user = FFAdminUser(
40 username="test_user",
41 email="test_user@test.com",
42 first_name="test",
43 last_name="user",
44 )
45 user.set_password("testuser123") # type: ignore[no-untyped-call]
46 user.save()
47 return user

Callers

nothing calls this directly

Calls 4

set_passwordMethod · 0.95
FFAdminUserClass · 0.90
clean_upMethod · 0.80
saveMethod · 0.45

Tested by

no test coverage detected