Skip to content

Commit c04f5b9

Browse files
committed
fix tests
1 parent 41d8477 commit c04f5b9

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

netcompare/check_types.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""CheckType Implementation."""
22
import re
3-
import json
43
import warnings
54
from typing import Mapping, Tuple, List, Dict, Any, Union
65
from abc import ABC, abstractmethod

tests/test_bugs.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
"""Test GitHub issues."""
22
import pytest
33
from netcompare import CheckType
4-
from .utility import ASSERT_FAIL_MESSAGE
54

65

7-
issue_67 = (
8-
{"global": {"peers": {"10.1.0.0": "peer1", "10.2.0.0": "peer2"}}}
9-
)
6+
issue_67 = {"global": {"peers": {"10.1.0.0": "peer1", "10.2.0.0": "peer2"}}}
107

118
issue_67_test = [
129
issue_67,
@@ -21,6 +18,4 @@ def test_issue_67(data):
2118
with pytest.raises(TypeError) as error:
2219
my_check.get_value(output=data, path=my_jmspath)() # pylint: disable=E0110
2320

24-
assert (
25-
"JMSPath returned 'None'. Please, verify your JMSPath regex." in error.value.__str__()
26-
)
21+
assert "JMSPath returned 'None'. Please, verify your JMSPath regex." in error.value.__str__()

0 commit comments

Comments
 (0)