1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-08 19:26:48 +00:00
webvirtcloud/accounts/tests
catborise ee6b8d3e10 test: no seeded admin password, settings changed only for a test, no local libvirt by default
- create_admin had a branch for `"test" in sys.argv` that gave the admin
  the password "admin"; 17 places signed in with it, and failed silently
  with ADMIN_PASSWORD set in the environment. The tests now make their
  own superuser and force_login it, and the shipped code has no test
  branch: the test runner gives migrate a password (also when
  ADMIN_PASSWORD is set but empty), so no data/admin_password is written
  into the checkout.
- AccountsTestCase builds its rows in setUpTestData instead of
  setUpClass and deleting them by hand.
- accounts tests set OTP_ENABLED with override_settings instead of
  assigning settings (one assignment was never undone, so later tests in
  the process ran with OTP on), and undo their app_settings change. The
  OTP login class reloads the URLs again only after the setting is off.
- computes/tests/test_views.py reached the machine's own libvirt
  (localhost over the socket) when TEST_LIBVIRT_HOST was unset; its live
  tests now run only with TEST_LIBVIRT_HOST, like the other live tests,
  as the README says.
2026-11-06 13:48:03 +03:00
..
__init__.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_account_page.py feat(templates): the shared form and delete pages in a centred column 2026-10-31 18:10:05 +03:00
test_admin_email_otp.py fix(accounts): mailing an OTP QR code waits at most 10 seconds for the SMTP server 2026-11-05 11:04:08 +03:00
test_admin_password.py test: no seeded admin password, settings changed only for a test, no local libvirt by default 2026-11-06 13:48:03 +03:00
test_api_tokens.py fix(accounts): an API token form sent twice makes one token 2026-11-05 18:58:13 +03:00
test_audit_rows.py fix(accounts): mailing an OTP QR code waits at most 10 seconds for the SMTP server 2026-11-05 11:04:08 +03:00
test_change_password_permission.py fix(settings): new passwords pass Django's password validators 2026-11-06 11:01:43 +03:00
test_checks.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_email_otp.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_first_login_password.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_ldap_timeouts.py fix(accounts): an LDAP login waits a bounded time for the directory 2026-11-05 11:04:08 +03:00
test_login_lockout.py chore(accounts): django-axes keeps no record of successful logins 2026-11-05 10:36:34 +03:00
test_otp_login.py test: no seeded admin password, settings changed only for a test, no local libvirt by default 2026-11-06 13:48:03 +03:00
test_security_fixes.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_unique_email.py fix(accounts): an email address belongs to one user, so "Lost OTP?" reaches it 2026-10-26 11:19:42 +03:00
test_utils.py fix(accounts): the admin's Email OTP sent twice at once makes one device 2026-11-05 18:58:13 +03:00
test_views.py test: no seeded admin password, settings changed only for a test, no local libvirt by default 2026-11-06 13:48:03 +03:00