diff --git a/pynetbox/models/dcim.py b/pynetbox/models/dcim.py index 7dd32d45..ba145884 100644 --- a/pynetbox/models/dcim.py +++ b/pynetbox/models/dcim.py @@ -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) diff --git a/pynetbox/models/virtualization.py b/pynetbox/models/virtualization.py index 64e5ee6f..a328a437 100644 --- a/pynetbox/models/virtualization.py +++ b/pynetbox/models/virtualization.py @@ -18,7 +18,6 @@ class VirtualMachines(Record): - primary_ip = IpAddresses primary_ip4 = IpAddresses primary_ip6 = IpAddresses diff --git a/tests/conftest.py b/tests/conftest.py index 99e9c3c7..aee6f30b 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -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: diff --git a/tests/unit/test_endpoint.py b/tests/unit/test_endpoint.py index 35ce340b..1aa84a3b 100644 --- a/tests/unit/test_endpoint.py +++ b/tests/unit/test_endpoint.py @@ -17,7 +17,6 @@ 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") @@ -25,7 +24,6 @@ def test_filter_invalid_pagination_args(self): 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")