Skip to content

Commit

Permalink
style: 🎨 fix ruff errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bile0026 committed Jan 11, 2025
1 parent 6e0a901 commit 49bdaeb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ def load(self):

self.job.logger.info(f'Loading {all_devices["count"]} Devices from LibreNMS.')


for _device in all_devices["devices"]:
self.load_device(device=_device)

Expand All @@ -140,7 +139,6 @@ def load(self):

self.job.logger.info(f'Loading {all_locations["count"]} Locations from LibreNMS.')


for _location in all_locations["locations"]:
self.load_location(location=_location)
else:
Expand Down
6 changes: 3 additions & 3 deletions nautobot_ssot/tests/librenms/test_librenms_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def setUp(self):
name="Active",
defaults={
"color": "4caf50",
}
},
)
self.active_status.content_types.add(ContentType.objects.get_for_model(Device))
self.active_status.content_types.add(ContentType.objects.get_for_model(Location))
Expand All @@ -41,11 +41,11 @@ def setUp(self):
# Mock device and location data
self.librenms_client.get_librenms_devices_from_file.return_value = {
"count": len(DEVICE_FIXTURE_RECV),
"devices": DEVICE_FIXTURE_RECV
"devices": DEVICE_FIXTURE_RECV,
}
self.librenms_client.get_librenms_locations_from_file.return_value = {
"count": len(LOCATION_FIXURE_RECV),
"locations": LOCATION_FIXURE_RECV
"locations": LOCATION_FIXURE_RECV,
}

self.job = LibrenmsDataSource()
Expand Down

0 comments on commit 49bdaeb

Please sign in to comment.