def create_admin_user(test_client, initialize_database, seed_system_data, create_master_organization): organization = create_master_organization user = User( given_names="John Doe", surname="Jane", email="*****@*****.**", signup_method=SignupMethod.WEB_SIGNUP, role_id=1, ) user.hash_password("password-123") user.bind_user_to_organization(organization) db.session.add(user) db.session.commit() return user