Skip to content

Commit 5878f97

Browse files
authored
Integration test fixs (#540)
1 parent 2d421d1 commit 5878f97

File tree

3 files changed

+7
-21
lines changed

3 files changed

+7
-21
lines changed

.github/workflows/e2e-suite-pr-command.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

tests/integration/firewalls/test_firewalls_rules.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,5 +322,4 @@ def test_list_rules_json_format(test_firewall_id):
322322
.stdout.decode()
323323
.rstrip()
324324
)
325-
326-
assert result[0]["inbound"][0] == {"label": "rules-list-test"}
325+
assert result[0]["inbound"][0]["label"] == "rules-list-test"

tests/integration/regions/test_plugin_region_table.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
1+
import os
12
import subprocess
23
from typing import List
34

45
BASE_CMD = ["linode-cli", "region-table"]
56

7+
# Set the console width to 150
8+
env = os.environ.copy()
9+
env["COLUMNS"] = "150"
10+
611

712
def exec_test_command(args: List[str]):
813
process = subprocess.run(
914
args,
1015
stdout=subprocess.PIPE,
16+
env=env,
1117
)
1218
return process
1319

0 commit comments

Comments
 (0)