Skip to content

Commit f1bc1ed

Browse files
committed
Add Copilot suggestions and fix regex warning
1 parent e890407 commit f1bc1ed

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

tests/integration/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,6 @@ def get_random_region_with_caps(
210210

211211

212212
def assert_help_actions_list(expected_actions, help_output):
213-
output_actions = re.findall("\│\s(\S+(?:,\s)?\S+)\s*\│", help_output)
213+
output_actions = re.findall(r'│\s(\S+(?:,\s)?\S+)\s*│', help_output)
214214
for expected_action in expected_actions:
215215
assert expected_action in output_actions

tests/integration/sharegroups/fixtures.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import jwt
21
import pytest
32

43
from tests.integration.helpers import (

tests/integration/sharegroups/test_images_sharegroups.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
exec_test_command,
99
get_random_text,
1010
)
11-
from tests.integration.sharegroups.fixtures import (
11+
from tests.integration.sharegroups.fixtures import ( # noqa: F401
1212
create_image_id,
1313
create_share_group,
1414
get_region,
@@ -88,8 +88,8 @@ def test_add_list_update_remove_image_to_share_group(create_share_group, create_
8888
result_list = exec_test_command(
8989
BASE_CMDS["image-sharegroups"] + ["images-list", create_share_group[0], "--delimiter", ",", "--text"]
9090
)
91-
assert not "linode-cli-test-image-sharing-image" in result_list
92-
assert not "updated_label" in result_list
91+
assert "linode-cli-test-image-sharing-image" not in result_list
92+
assert "updated_label" not in result_list
9393

9494
delete_target_id(target="image-sharegroups", id=create_share_group[0])
9595
delete_target_id(target="images", id=create_image_id[1])

0 commit comments

Comments
 (0)