Skip to content

Commit

Permalink
pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
gsnider2195 committed Dec 13, 2024
1 parent 00ff145 commit d69d474
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
8 changes: 5 additions & 3 deletions nautobot_golden_config/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,23 +409,25 @@ def setUpTestData(cls):
}


class ConfigReplaceAPITestCase(
class ConfigReplaceAPITestCase( # pylint: disable=too-many-ancestors
APIViewTestCases.CreateObjectViewTestCase,
APIViewTestCases.GetObjectViewTestCase,
APIViewTestCases.ListObjectsViewTestCase,
APIViewTestCases.UpdateObjectViewTestCase,
APIViewTestCases.DeleteObjectViewTestCase,
APIViewTestCases.NotesURLViewTestCase,
):
"""Test API for ConfigReplace."""

model = ConfigReplace

@classmethod
def setUpTestData(cls):
create_device_data()
platform = Device.objects.first().platform
for i in range(3):
for num in range(3):
ConfigReplace.objects.create(
name=f"test configreplace {i}",
name=f"test configreplace {num}",
platform=platform,
description="test description",
regex="^(.*)$",
Expand Down
8 changes: 4 additions & 4 deletions nautobot_golden_config/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ def test_config_compliance_details_sotagg_no_error(
mock_graph_ql_query.assert_called()


class ConfigReplaceUIViewSetTestCase(ViewTestCases.PrimaryObjectViewTestCase):
"""Test ConfigReplaceListView."""
class ConfigReplaceUIViewSetTestCase(ViewTestCases.PrimaryObjectViewTestCase): # pylint: disable=too-many-ancestors
"""Test ConfigReplaceUIViewSet."""

model = models.ConfigReplace

Expand All @@ -116,9 +116,9 @@ def setUpTestData(cls):
"""Set up base objects."""
create_device_data()
platform = Device.objects.first().platform
for i in range(3):
for num in range(3):
models.ConfigReplace.objects.create(
name=f"test configreplace {i}",
name=f"test configreplace {num}",
platform=platform,
description="test description",
regex="^(.*)$",
Expand Down

0 comments on commit d69d474

Please sign in to comment.