websauna.tests.admin.test_user_admin module

websauna.tests.admin.test_user_admin.test_add_user(browser, web_server, init, dbsession)[source]

See that we can add new users.

websauna.tests.admin.test_user_admin.test_add_user_existing_email(browser, web_server, init, dbsession)[source]

Add a user but there already exists one with the same email.

websauna.tests.admin.test_user_admin.test_add_user_password_mismatch(browser, web_server, init, dbsession)[source]

Make sure new user is not created on password mismatch.

websauna.tests.admin.test_user_admin.test_add_user_with_group(browser, web_server, init, dbsession)[source]

Add a user and directly assign a group.

websauna.tests.admin.test_user_admin.test_csv_export_users(dbsession, registry, browser, web_server)[source]

Test CSV export functionality.

websauna.tests.admin.test_user_admin.test_delete_user_cancel(browser, web_server, init, dbsession)[source]

Delete a user, but back off on the confirmation screen.

websauna.tests.admin.test_user_admin.test_delete_user_confirm(browser, web_server, init, dbsession)[source]

Delete a user.

websauna.tests.admin.test_user_admin.test_set_email(browser, victim_browser, web_server, init, dbsession)[source]

Setting email resets user session and user can log in again.

websauna.tests.admin.test_user_admin.test_set_enabled(browser, victim_browser, web_server, init, dbsession)[source]

Setting enabled resets user session. User can log after the account has been re-enabled.

websauna.tests.admin.test_user_admin.test_set_password(browser, victim_browser, web_server, init, dbsession)[source]

See that we can reset the user password.

  1. Have admin user, normal user

  2. See that when the admin resets the user password all the user sessions are dropped (security feature)

websauna.tests.admin.test_user_admin.test_view_user_details(browser, web_server, init, dbsession)[source]

See that we can view the details of the user in a browser.

websauna.tests.admin.test_user_admin.victim_browser(request, browser_instance_getter)[source]

py.test fixture to open up another web browser for password reset victim.