Skip to content

Commit 16e1eb6

Browse files
committed
improve test
1 parent af89f2c commit 16e1eb6

1 file changed

Lines changed: 4 additions & 17 deletions

File tree

test/integration/conftest.py

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
from requests.exceptions import ConnectionError, RequestException
1818

1919
from linode_api4 import (
20-
Capability,
2120
Instance,
2221
InterfaceGeneration,
2322
IPAddress,
@@ -42,8 +41,6 @@
4241
RUN_LONG_TESTS = "RUN_LONG_TESTS"
4342
SKIP_E2E_FIREWALL = "SKIP_E2E_FIREWALL"
4443

45-
TEST_VPC_REGION = None
46-
4744
ALL_ACCOUNT_AVAILABILITIES = {
4845
"Linodes",
4946
"NodeBalancers",
@@ -473,11 +470,6 @@ def create_vpc(test_linode_client):
473470
client = test_linode_client
474471
label = get_test_label(length=10)
475472

476-
global TEST_VPC_REGION
477-
TEST_VPC_REGION = get_region(
478-
test_linode_client, {"VPCs", "VPC IPv6 Stack", "Linode Interfaces"}
479-
)
480-
481473
vpc = client.vpcs.create(
482474
label=label,
483475
region=get_region(
@@ -502,15 +494,10 @@ def create_vpc_with_rdma_type(test_linode_client):
502494
client = test_linode_client
503495
label = get_test_label(length=10)
504496

505-
if TEST_VPC_REGION:
506-
region = TEST_VPC_REGION
507-
else:
508-
region = get_region(
509-
# GPUDirect RDMA capability not available for now
510-
# test_linode_client, {Capability.vpcs, Capability.gpudirect_rdma}
511-
test_linode_client,
512-
{Capability.vpcs},
513-
)
497+
# GPUDirect RDMA capability not available for now
498+
region = get_region(
499+
test_linode_client, {"VPCs", "VPC IPv6 Stack", "Linode Interfaces"}
500+
)
514501

515502
vpc = client.vpcs.create(
516503
label=label,

0 commit comments

Comments
 (0)