Skip to content

Commit

Permalink
Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
johanek committed Apr 13, 2021
1 parent 08208af commit ea1d48c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_netbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def test_inventory_use_platform_napalm_driver(self, requests_mock, version):
requests_mock, self.plugin, False, version, use_platform_napalm_driver=True
)
with open(
f"{BASE_PATH}/{self.plugin.__name__}/{version}/expected_use_platform_napalm_driver.json",
f"{BASE_PATH}/{self.plugin.__name__}/{version}/expected_use_platform_napalm_driver.json", # noqa: E501
"r",
) as f:
expected = json.load(f)
Expand All @@ -162,7 +162,7 @@ def test_inventory_use_platform_napalm_driver(self, requests_mock, version):
def test_inventory_multiple_platform_sources_raises_exception(
self, requests_mock, version
):
with pytest.raises(ValueError) as e_info:
with pytest.raises(ValueError):
inv = get_inv(
requests_mock,
self.plugin,
Expand All @@ -171,3 +171,4 @@ def test_inventory_multiple_platform_sources_raises_exception(
use_platform_slug=True,
use_platform_napalm_driver=True,
)
assert inv

0 comments on commit ea1d48c

Please sign in to comment.