Skip to content

Commit

Permalink
pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
gsnider2195 committed Oct 31, 2024
1 parent b99ae09 commit a09fcfc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nautobot_golden_config/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ def test_generate_intended_config(self, mock_dispatcher, MockPath, mock_ensure_g

# Replicate nornir nested task structure
def _mock_dispatcher(task, *args, **kwargs):
def _template_file(task, *args, **kwargs):
def _template_file(*args, **kwargs):
return None

def _generate_config(task, *args, **kwargs):
Expand Down Expand Up @@ -541,8 +541,8 @@ def test_generate_intended_config_failures(self, mock_dispatcher, MockPath, mock

# Replicate nornir nested task structure
def _mock_dispatcher(task, *args, **kwargs):
def _template_file(task, *args, **kwargs):
raise Exception("Test exception")
def _template_file(*args, **kwargs):
raise Exception("Test exception") # pylint: disable=broad-exception-raised

def _generate_config(task, *args, **kwargs):
task.run(task=_template_file, name="template_file")
Expand Down

0 comments on commit a09fcfc

Please sign in to comment.