File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -155,6 +155,8 @@ def init_test_payment_tools() -> dict[HelloAssoConfigName, PaymentTool]:
155155
156156hyperion_error_logger = logging .getLogger ("hyperion.error" )
157157
158+ TEST_PASSWORD_HASH = security .get_password_hash (get_random_string ())
159+
158160
159161async def create_user_with_groups (
160162 groups : list [GroupType ],
@@ -176,7 +178,9 @@ async def create_user_with_groups(
176178 """
177179
178180 user_id = user_id or str (uuid .uuid4 ())
179- password_hash = security .get_password_hash (password or get_random_string ())
181+ password_hash = (
182+ security .get_password_hash (password ) if password else TEST_PASSWORD_HASH
183+ )
180184 school_id = school_id .value if isinstance (school_id , SchoolType ) else school_id
181185
182186 user = models_users .CoreUser (
You can’t perform that action at this time.
0 commit comments