Skip to content

Commit 1448dd5

Browse files
committed
Fix not contains bug
1 parent 18abefc commit 1448dd5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/example_custom_netmiko_cli_test/netmiko_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,4 @@ def test_not_contains_in_result(
6161
"command_string", None
6262
)
6363
result = single_result.result
64-
assert not_contains in result, f"'{not_contains}' FOUND in '{cmd}' output"
64+
assert not_contains not in result, f"'{not_contains}' FOUND in '{cmd}' output"

test_project/tests/test_ip_addr.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@
66
test_data:
77
- host: box01
88
contains: "127.0.0.1/8"
9-
not_contains: "DOWN"
9+
not_contains: "DOWN"
10+
- host: box01
11+
contains: "mtu 1500"

0 commit comments

Comments
 (0)