mirror of
https://github.com/retspen/webvirtcloud
synced 2026-10-18 00:50:07 +00:00
refactor(console): replace deprecated optparse with argparse and fix regex escape sequences
This commit is contained in:
parent
dc6327c554
commit
3633c0096e
5 changed files with 132 additions and 74 deletions
|
|
@ -180,7 +180,7 @@ class InstancesTestCase(TestCase):
|
|||
def test_create_from_xml(self):
|
||||
uuid = randomUUID()
|
||||
xml = self.xml.replace("test-vm", "test-vm-xml")
|
||||
xml = re.sub("\s?<uuid>.*?</uuid>", f"<uuid>{uuid}</uuid>", xml)
|
||||
xml = re.sub(r"\s?<uuid>.*?</uuid>", f"<uuid>{uuid}</uuid>", xml)
|
||||
response = self.client.post(
|
||||
reverse("instances:create_instance_select_type", args=[self.compute.id]),
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue