From e85c71b710ce4b5d93b7bf4365231eb4bd5b354d Mon Sep 17 00:00:00 2001 From: ezilber-akamai Date: Tue, 14 Jul 2026 13:25:21 -0400 Subject: [PATCH 1/2] Fixed several failing VPC integration tests --- test/integration/conftest.py | 2 +- test/integration/models/vpc/test_vpc.py | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/test/integration/conftest.py b/test/integration/conftest.py index e848ddf1c..b422c8148 100644 --- a/test/integration/conftest.py +++ b/test/integration/conftest.py @@ -473,7 +473,7 @@ def create_vpc(test_linode_client): vpc = client.vpcs.create( label=label, region=get_region( - test_linode_client, {"VPCs", "VPC IPv6 Stack", "Linode Interfaces"} + test_linode_client, {"VPCs", "VPC IPv6 Stack", "Linode Interfaces", "Custom VPC IPv4 Ranges"} ), description="test description", ipv6=[{"range": "auto"}], diff --git a/test/integration/models/vpc/test_vpc.py b/test/integration/models/vpc/test_vpc.py index 4af2bb1a5..1fca6e712 100644 --- a/test/integration/models/vpc/test_vpc.py +++ b/test/integration/models/vpc/test_vpc.py @@ -164,9 +164,6 @@ def test_vpc_with_ipv4(test_linode_client, create_vpc_with_ipv4): loaded_vpc = client.load(VPC, vpc.id) assert loaded_vpc.ipv4[0].range == "10.0.0.0/8" - all_vpcs = client.vpcs() - assert vpc.id in [v.id for v in all_vpcs] - vpc.ipv4 = [{"range": "192.168.0.0/17"}] vpc.save() From 4b4474384ebebc479c4d3ed6f3f0514dbd2494b4 Mon Sep 17 00:00:00 2001 From: ezilber-akamai Date: Tue, 14 Jul 2026 13:31:04 -0400 Subject: [PATCH 2/2] Fix lint --- test/integration/conftest.py | 8 +++++++- test/integration/models/networking/test_networking.py | 6 +----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/test/integration/conftest.py b/test/integration/conftest.py index b422c8148..a210fc20f 100644 --- a/test/integration/conftest.py +++ b/test/integration/conftest.py @@ -473,7 +473,13 @@ def create_vpc(test_linode_client): vpc = client.vpcs.create( label=label, region=get_region( - test_linode_client, {"VPCs", "VPC IPv6 Stack", "Linode Interfaces", "Custom VPC IPv4 Ranges"} + test_linode_client, + { + "VPCs", + "VPC IPv6 Stack", + "Linode Interfaces", + "Custom VPC IPv4 Ranges", + }, ), description="test description", ipv6=[{"range": "auto"}], diff --git a/test/integration/models/networking/test_networking.py b/test/integration/models/networking/test_networking.py index f2bdf00a3..0d028e6c3 100644 --- a/test/integration/models/networking/test_networking.py +++ b/test/integration/models/networking/test_networking.py @@ -15,11 +15,7 @@ import pytest import requests -from linode_api4 import ( - ApiError, - Instance, - LinodeClient, -) +from linode_api4 import ApiError, Instance, LinodeClient from linode_api4.objects import ( Config, ConfigInterfaceIPv4,