Skip to content

Commit

Permalink
FIX: pylint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
amilcarlucas committed Jan 18, 2025
1 parent 108a803 commit 592c94a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/test_param_pid_adjustment_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
SPDX-License-Identifier: GPL-3.0-or-later
"""

# pylint: skip-file

import argparse
import os
import shutil
Expand All @@ -28,6 +26,8 @@


class TestRangedType(unittest.TestCase):
"""Test cases for validating the ranged_type function."""

def test_valid_input(self) -> None:
assert ranged_type(int, 1, 10)(5) == 5
assert ranged_type(float, 0.1, 0.8)(0.5) == 0.5
Expand All @@ -45,6 +45,8 @@ def test_invalid_input(self) -> None:


class TestLoadParamFileIntoDict(unittest.TestCase):
"""Test cases for validating the LoadParamFileIntoDict class."""

def test_valid_input(self) -> None:
# Create a temporary file with valid parameter data
with open("temp.param", "w", encoding="utf-8") as f:
Expand Down Expand Up @@ -174,6 +176,8 @@ def tearDown(self) -> None:


class TestExportToParam(unittest.TestCase):
"""Test cases for validating the ExportToParam class."""

def test_valid_input(self) -> None:
# Create a temporary file with valid parameter data
with open("temp.param", "w", encoding="utf-8") as f:
Expand Down Expand Up @@ -220,6 +224,8 @@ def tearDown(self) -> None:


class TestUpdatePidAdjustmentParams(unittest.TestCase):
"""Test cases for validating the UpdatePidAdjustmentParams class."""

def setUp(self) -> None:
# Create a directory for the test files
self.test_dir = "test_directory"
Expand Down

0 comments on commit 592c94a

Please sign in to comment.