Closes #17725: Clean up import statements (#17728)

* #17725: Resolve all F401 errors

* Tweak noqa designation
This commit is contained in:
Jeremy Stretch
2024-10-10 14:52:47 -04:00
committed by GitHub
parent e3c3ca191c
commit e59f776e02
54 changed files with 29 additions and 90 deletions

View File

@@ -12,7 +12,6 @@ from dcim.models import Device, DeviceRole, DeviceType, Manufacturer, Rack, Loca
from extras.choices import *
from extras.models import *
from extras.scripts import BooleanVar, IntegerVar, Script as PythonClass, StringVar
from netbox.events import *
from users.models import Group, User
from utilities.testing import APITestCase, APIViewTestCases
@@ -793,7 +792,6 @@ class ScriptTest(APITestCase):
super().setUp()
# Monkey-patch the Script model to return our TestScriptClass above
from extras.api.views import ScriptViewSet
Script.python_class = self.python_class
def test_get_script(self):