Skip to content

Commit

Permalink
fixde lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
abhi1693 committed Jan 3, 2024
1 parent 7deee2b commit 5226505
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion pynetbox/models/dcim.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def trace(self):
).get()

ret = []
for (a_terminations_data, cable_data, b_terminations_data) in req:
for a_terminations_data, cable_data, b_terminations_data in req:
ret.append(self._build_termination_data(a_terminations_data))
if not cable_data:
ret.append(cable_data)
Expand Down
1 change: 0 additions & 1 deletion pynetbox/models/virtualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@


class VirtualMachines(Record):

primary_ip = IpAddresses
primary_ip4 = IpAddresses
primary_ip6 = IpAddresses
Expand Down
1 change: 0 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ def pytest_configure(config):
for version_string in config.option.netbox_versions.split(",")
]
if "no:docker" in config.option.plugins and config.option.url_override:

url_parse = parse.urlparse(config.option.url_override)

class DockerServicesMock:
Expand Down
2 changes: 0 additions & 2 deletions tests/unit/test_endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,13 @@ def test_filter(self):
self.assertEqual(len(test), 2)

def test_filter_invalid_pagination_args(self):

api = Mock(base_url="http://localhost:8000/api")
app = Mock(name="test")
test_obj = Endpoint(api, app, "test")
with self.assertRaises(ValueError) as _:
test_obj.filter(offset=1)

def test_all_invalid_pagination_args(self):

api = Mock(base_url="http://localhost:8000/api")
app = Mock(name="test")
test_obj = Endpoint(api, app, "test")
Expand Down

0 comments on commit 5226505

Please sign in to comment.