mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-01 16:36:06 +00:00
refactor(instances): the VM list calls refresh_instance_database itself
instances.utils.refr() only imported and called computes.utils.refresh_instance_database(); the views import it directly, as they import its siblings from computes.utils. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kk4h2TcUiaWmU5MUszYSea
This commit is contained in:
parent
e554390ddf
commit
496d3a48ad
15 changed files with 29 additions and 35 deletions
|
|
@ -46,7 +46,7 @@ class ListReadTests(TestCase):
|
|||
|
||||
return patch.object(cls, name, call)
|
||||
|
||||
patches = [patch("instances.views.utils.refr"), patch("computes.views.utils.refresh_instance_database"),
|
||||
patches = [patch("instances.views.refresh_instance_database"), patch("computes.views.utils.refresh_instance_database"),
|
||||
patch("vrtManager.connection.connection_manager.get_connection", return_value=self.conn),
|
||||
counted(libvirt.virDomain, "info"), counted(libvirt.virDomain, "XMLDesc"),
|
||||
counted(libvirt.virConnect, "lookupByUUIDString")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue