1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-10-23 03:16:48 +00:00

fix(tests): decouple tests from local libvirt, support configurable test host, and fix URL/logging bugs

This commit is contained in:
catborise 2026-09-25 11:51:45 +03:00
parent c31ed28042
commit 60565b05b3
6 changed files with 153 additions and 130 deletions

View file

@ -30,6 +30,12 @@ urlpatterns = [
),
path("ssh_key/create/", views.ssh_key_create, name="ssh_key_create"),
path("ssh_key/<int:pk>/delete/", views.ssh_key_delete, name="ssh_key_delete"),
path("email_otp/", views.email_otp, name="email_otp"),
path(
"admin_email_otp/<int:user_id>/",
views.admin_email_otp,
name="admin_email_otp",
),
]
if settings.OTP_ENABLED:
@ -42,12 +48,6 @@ if settings.OTP_ENABLED:
),
name="login",
),
path("email_otp/", views.email_otp, name="email_otp"),
path(
"admin_email_otp/<int:user_id>/",
views.admin_email_otp,
name="admin_email_otp",
),
]
else:
urlpatterns += (