From 47b0e90b4427cd3236ee0df3351596cbf3005581 Mon Sep 17 00:00:00 2001 From: Cristian Sirbu Date: Mon, 19 Aug 2024 17:55:43 +0100 Subject: [PATCH] More post-rebase fixes --- pylint_nautobot/use_fields_all.py | 3 +-- tests/inputs/use-fields-all/error_table.py | 13 ------------- tests/inputs/use-fields-all/good_table.py | 13 ------------- 3 files changed, 1 insertion(+), 28 deletions(-) delete mode 100644 tests/inputs/use-fields-all/error_table.py delete mode 100644 tests/inputs/use-fields-all/good_table.py diff --git a/pylint_nautobot/use_fields_all.py b/pylint_nautobot/use_fields_all.py index ce036cb..0cac3cd 100644 --- a/pylint_nautobot/use_fields_all.py +++ b/pylint_nautobot/use_fields_all.py @@ -3,8 +3,7 @@ from astroid import Assign, AssignName, ClassDef, Const from pylint.checkers import BaseChecker -from .utils import find_meta -from .utils import is_version_compatible +from .utils import find_meta, is_version_compatible _META_CLASSES = { "nautobot.core.api.serializers.NautobotModelSerializer": ">=2", diff --git a/tests/inputs/use-fields-all/error_table.py b/tests/inputs/use-fields-all/error_table.py deleted file mode 100644 index 3b33e64..0000000 --- a/tests/inputs/use-fields-all/error_table.py +++ /dev/null @@ -1,13 +0,0 @@ -from nautobot.apps.tables import BaseTable, ToggleColumn -from nautobot.extras.tables import StatusTableMixin - - -class MyTable(StatusTableMixin, BaseTable): - """Table for list view.""" - - pk = ToggleColumn() - - class Meta(BaseTable.Meta): - """Meta attributes.""" - - fields = ("pk", "my_field1", "my_field2") diff --git a/tests/inputs/use-fields-all/good_table.py b/tests/inputs/use-fields-all/good_table.py deleted file mode 100644 index 9e50c96..0000000 --- a/tests/inputs/use-fields-all/good_table.py +++ /dev/null @@ -1,13 +0,0 @@ -from nautobot.apps.tables import BaseTable, ToggleColumn -from nautobot.extras.tables import StatusTableMixin - - -class MyTable(StatusTableMixin, BaseTable): - """Table for list view.""" - - pk = ToggleColumn() - - class Meta(BaseTable.Meta): - """Meta attributes.""" - - fields = "__all__"