fix(reinstall): use OSTemplate.vmid (not template_vmid) and convert memory bytes->MB
- AttributeError: OSTemplate has no 'template_vmid' field; the actual column is 'vmid'. - Use OSTemplate.get_vmid_for_node() to support cross-node replicated templates, falling back to source_node/vmid otherwise. - VMInstance.memory is stored in bytes, but Proxmox config expects MB.
This commit is contained in:
17
backend/pytest.ini
Normal file
17
backend/pytest.ini
Normal file
@@ -0,0 +1,17 @@
|
||||
[pytest]
|
||||
testpaths = tests
|
||||
python_files = test_*.py
|
||||
python_classes = Test*
|
||||
python_functions = test_*
|
||||
addopts =
|
||||
-ra
|
||||
--strict-markers
|
||||
--tb=short
|
||||
--color=yes
|
||||
filterwarnings =
|
||||
ignore::DeprecationWarning:passlib.*
|
||||
ignore::DeprecationWarning:pkg_resources.*
|
||||
markers =
|
||||
smoke: quick smoke tests
|
||||
unit: pure unit tests
|
||||
integration: integration tests touching multiple modules
|
||||
Reference in New Issue
Block a user