1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-08 19:26:48 +00:00
webvirtcloud/appsettings/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_appsettings.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_audit_rows.py fix(appsettings): a group saves what was edited, all of it or none, in one row 2026-10-26 10:12:53 +03:00
test_backup.py fix(backup): TLS client certificates persist in Docker and are backed up 2026-11-06 09:12:34 +03:00
test_get_settings.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_migrations.py chore(appsettings): one squashed migration for a new database 2026-11-06 13:47:23 +03:00
test_theme_name.py build: the themes ship compiled, libsass is no longer installed 2026-10-18 22:36:29 +03:00
test_themes.py build: the themes ship compiled, libsass is no longer installed 2026-10-18 22:36:29 +03:00