Skip to content

Commit

Permalink
linter formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
cjmakes committed Oct 2, 2024
1 parent c9624e0 commit e7bf430
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 5 additions & 2 deletions facts/datasource.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,14 +161,17 @@ def isvalidtype(val):
return True
return False


def isvalidport(val):
""""test for valid port config [FIBER, RSRVD, TRUNK, VLAN, VVBB, VVLAN]"""
"""test for valid port config [FIBER, RSRVD, TRUNK, VLAN, VVBB, VVLAN]"""
return val in ["FIBER", "RSRVD", "TRUNK", "VLAN", "VVBB", "VVLAN"]


def isvalidlink(val):
""""test for valid link type [Uplink, Downlink, AP, MassFlash]"""
"""test for valid link type [Uplink, Downlink, AP, MassFlash]"""
return val in ["Uplink", "Downlink", "AP", "MassFlash", "-"]


def test_csvfile(meta):
"""csv wrapper for test_datafile"""
return test_datafile(r",", meta)
Expand Down
2 changes: 2 additions & 0 deletions facts/test_datasources.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ def test_switchtypes_tsv():
result, err = ds.test_tsvfile(meta)
assert result, err


def test_switchconfigs_tsv():
"""test switchconfigs"""

Expand All @@ -128,6 +129,7 @@ def test_switchconfigs_tsv():
result, err = ds.test_tsvfile(meta)
assert result, err


def test_vlansd_tsv():
"""test vlans.d/"""

Expand Down

0 comments on commit e7bf430

Please sign in to comment.