Skip to content

Commit 814d091

Browse files
committed
Ruff fixes
1 parent c0cb294 commit 814d091

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

netbox_custom_objects/tests/test_views.py

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -294,10 +294,7 @@ def _get_base_url(self):
294294
Return the base format for a URL for the test's model. Override this to test for a model which belongs
295295
to a different app (e.g. testing Interfaces within the virtualization app).
296296
"""
297-
return 'plugins:{}:customobject_{{}}'.format(
298-
self.model._meta.app_label,
299-
self.model._meta.model_name
300-
)
297+
return 'plugins:{}:customobject_{{}}'.format(self.model._meta.app_label)
301298

302299
def _get_url(self, action, instance=None):
303300
"""
@@ -504,10 +501,7 @@ def _get_base_url(self):
504501
Return the base format for a URL for the test's model. Override this to test for a model which belongs
505502
to a different app (e.g. testing Interfaces within the virtualization app).
506503
"""
507-
return 'plugins:{}:customobject_{{}}'.format(
508-
self.model._meta.app_label,
509-
self.model._meta.model_name
510-
)
504+
return 'plugins:{}:customobject_{{}}'.format(self.model._meta.app_label)
511505

512506
def _get_url(self, action, instance=None):
513507
"""
@@ -670,10 +664,7 @@ def _get_base_url(self):
670664
Return the base format for a URL for the test's model. Override this to test for a model which belongs
671665
to a different app (e.g. testing Interfaces within the virtualization app).
672666
"""
673-
return 'plugins:{}:customobject_{{}}'.format(
674-
self.model._meta.app_label,
675-
self.model._meta.model_name
676-
)
667+
return 'plugins:{}:customobject_{{}}'.format(self.model._meta.app_label)
677668

678669
def _get_url(self, action, instance=None):
679670
"""

0 commit comments

Comments
 (0)