Skip to content

Commit 8afb451

Browse files
committed
update tests
1 parent 589ebf8 commit 8afb451

File tree

3 files changed

+574
-471
lines changed

3 files changed

+574
-471
lines changed

tests/integration/test_parsing_igmp.py

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,24 @@
77

88

99
def validate_igmp(df: pd.DataFrame):
10-
'''Validate the routes table for all values'''
10+
"""Validate the routes table for all values"""
1111

12-
assert (df.vrf != '').all()
13-
assert (df.group != '').all()
12+
assert (df.vrf != "").all()
13+
assert (df.group != "").all()
1414

1515

16-
17-
@ pytest.mark.parsing
18-
@ pytest.mark.igmp
19-
@ pytest.mark.parametrize('table', ['igmp'])
20-
@ pytest.mark.parametrize('datadir', DATADIR)
16+
@pytest.mark.parsing
17+
@pytest.mark.igmp
18+
@pytest.mark.parametrize("table", ["igmp"])
19+
@pytest.mark.parametrize("datadir", DATADIR)
2120
# pylint: disable=unused-argument
2221
def test_igmp_parsing(table, datadir, get_table_data):
23-
'''Main workhorse routine to test parsed output for Routes'''
22+
"""Main workhorse routine to test parsed output for igmp"""
2423

2524
df = get_table_data
2625

2726
ns_dict = {
28-
'eos': 2,
27+
"multicast": 2,
2928
}
3029

3130
assert not df.empty

tests/integration/test_parsing_mroutes.py

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,25 @@
77

88

99
def validate_mroutes(df: pd.DataFrame):
10-
'''Validate the routes table for all values'''
10+
"""Validate the routes table for all values"""
1111

1212
# assert (df.vrf != '').all()
13-
assert (df.group != '').all()
14-
assert (df.source != '').all()
1513

14+
assert (df.group != "").all()
15+
assert (df.source != "").all()
1616

17-
@ pytest.mark.parsing
18-
@ pytest.mark.mroutes
19-
@ pytest.mark.parametrize('table', ['mroutes'])
20-
@ pytest.mark.parametrize('datadir', DATADIR)
17+
18+
@pytest.mark.parsing
19+
@pytest.mark.mroutes
20+
@pytest.mark.parametrize("table", ["mroutes"])
21+
@pytest.mark.parametrize("datadir", DATADIR)
2122
# pylint: disable=unused-argument
2223
def test_mroutes_parsing(table, datadir, get_table_data):
23-
'''Main workhorse routine to test parsed output for Routes'''
24+
"""Main workhorse routine to test parsed output for mRoutes"""
2425

2526
df = get_table_data
2627

27-
ns_dict = {
28-
'eos': 2
29-
}
28+
ns_dict = {"multicast": 6}
3029

3130
assert not df.empty
3231
validate_host_shape(df, ns_dict)

0 commit comments

Comments
 (0)