mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-10 12:16:49 +00:00
chore: remove code nothing uses
Each was checked with git grep across every tracked file (templates, JS, shell, unit files and the extensionless console daemons) and for dynamic use (URL names, template names, registries): - vrtManager: host_is_up, is_kvm_supported, get_emulators, get_file_extensions, both get_network_forward, get_snapshots, get_storages_images, get_os_type, get_host_arch, the get_pretty_* trio and, in util, is_kvm_available, randomMAC, get_max_vcpus, compareMAC, pretty_mem, pretty_bytes and validate_uuid; with them the port constants only host_is_up read. Some were reached only by their tests, which go too. - The flavor edit page: nothing linked to it; flavors are created and deleted on the Flavors page and edited through the API. - computes.validate_name, UserForm.identity_has_errors, the has_perm template tag, the ALLOW_EMPTY_PASSWORD setting nothing reads, hidePleaseWaitDialog, default_app_config (ignored since Django 4.1) and the Python < 3.6 lines of secret_generator.py.
This commit is contained in:
parent
02412b7ea5
commit
764cbb3c43
26 changed files with 307 additions and 690 deletions
|
|
@ -6,7 +6,7 @@ import unittest
|
|||
|
||||
from django.core.exceptions import ValidationError
|
||||
|
||||
from computes.validators import validate_hostname, validate_login, validate_name
|
||||
from computes.validators import validate_hostname, validate_login
|
||||
|
||||
|
||||
class HostnameValidatorTestCase(unittest.TestCase):
|
||||
|
|
@ -46,8 +46,3 @@ class LoginValidatorTestCase(unittest.TestCase):
|
|||
validate_login(value)
|
||||
|
||||
|
||||
class NameValidatorTestCase(unittest.TestCase):
|
||||
def test_checks_the_value(self):
|
||||
validate_name("good-name_1.2")
|
||||
with self.assertRaises(ValidationError):
|
||||
validate_name("bad name!")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue