Skip to content

Commit 85c782e

Browse files
committed
rename test file and function
1 parent c04f5b9 commit 85c782e

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

tests/test_bugs.py renamed to tests/test_get_value.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,12 @@
33
from netcompare import CheckType
44

55

6-
issue_67 = {"global": {"peers": {"10.1.0.0": "peer1", "10.2.0.0": "peer2"}}}
6+
my_data = {"global": {"peers": {"10.1.0.0": "peer1", "10.2.0.0": "peer2"}}}
77

8-
issue_67_test = [
9-
issue_67,
10-
]
118

12-
13-
@pytest.mark.parametrize("data", issue_67_test)
14-
def test_issue_67(data):
15-
"""Resolve issue 67: https://github.com/networktocode-llc/netcompare/issues/67"""
9+
@pytest.mark.parametrize("data", [my_data])
10+
def test_jmspath_return_none(data):
11+
"""Habdle exception when JMSPath retunr None."""
1612
my_jmspath = "global[*]"
1713
my_check = CheckType.init(check_type="exact_match")
1814
with pytest.raises(TypeError) as error:

0 commit comments

Comments
 (0)