Skip to content

Commit 40e6eaf

Browse files
author
Josh VanDeraa
committed
Linting updates
1 parent 2dbb33d commit 40e6eaf

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

netbox_onboarding/forms.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@
2929
class OnboardingTaskForm(BootstrapMixin, forms.ModelForm):
3030
"""Form for creating a new OnboardingTask instance."""
3131

32-
ip_address = forms.CharField(required=True, label="IP address", help_text="IP Address/DNS Name of the device to onboard")
32+
ip_address = forms.CharField(
33+
required=True, label="IP address", help_text="IP Address/DNS Name of the device to onboard"
34+
)
3335

3436
site = forms.ModelChoiceField(required=True, queryset=Site.objects.all(), to_field_name="slug")
3537

netbox_onboarding/tests/test_onboard.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def test_check_ip(self, mock_get_hostbyname):
203203

204204
# Check that the IP address is returned
205205
self.assertTrue(ndk4.check_ip())
206-
206+
207207
# Run the check to change the IP address
208208
ndk4.check_ip()
209209
self.assertEqual(ndk4.ot.ip_address, "192.0.2.1")
@@ -216,4 +216,3 @@ def test_failed_check_ip(self, mock_get_hostbyname):
216216
ndk5 = NetdevKeeper(self.onboarding_task5)
217217

218218
self.assertFalse(ndk5.check_ip())
219-

0 commit comments

Comments
 (0)