mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-02 00:46:05 +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
|
|
@ -28,7 +28,7 @@ class InstancesIndexTests(TestCase):
|
|||
Instance.objects.filter(pk=instance.pk).delete()
|
||||
self.assertFalse(Instance.objects.filter(pk=instance.pk).exists())
|
||||
|
||||
with patch("instances.views.utils.refr", side_effect=synchronize), patch.object(
|
||||
with patch("instances.views.refresh_instance_database", side_effect=synchronize), patch.object(
|
||||
Compute, "status", new_callable=PropertyMock, return_value=True
|
||||
), patch.object(
|
||||
Compute, "cpu_count", new_callable=PropertyMock, return_value=1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue