From e6ea6bfef44e4676aa825bf6f3157ca18a61d2bb Mon Sep 17 00:00:00 2001 From: Artem Kotik Date: Fri, 29 Sep 2023 21:25:13 +0400 Subject: [PATCH] Fix tests --- tests/test_compliance_utils.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/test_compliance_utils.py b/tests/test_compliance_utils.py index e4562d8..234ea17 100644 --- a/tests/test_compliance_utils.py +++ b/tests/test_compliance_utils.py @@ -13,7 +13,8 @@ interface fa-0/0 switchport mode access - switchport access vlan 100""" + switchport access vlan 100 +""" @pytest.mark.parametrize( @@ -21,15 +22,15 @@ [ ( "^interface.?\n^Building", - "hostname test-1\n\nfa-0/0\n switchport mode access\n switchport access vlan 100\n", + "hostname test-1\n\nfa-0/0\n switchport mode access\n switchport access vlan 100", ), ( "^interface.*$\n^Building", - "hostname test-1\n\n\n switchport mode access\n switchport access vlan 100\n", + "hostname test-1\n\n\n switchport mode access\n switchport access vlan 100", ), ( "^Building", - "hostname test-1\n\ninterface fa-0/0\n switchport mode access\n switchport access vlan 100\n", + "hostname test-1\n\ninterface fa-0/0\n switchport mode access\n switchport access vlan 100", ), ], ids=["part of line", "full line", "no effect"],