[Python] Method name doesn't conform to snake_case naming style

Discussão em 'Python' iniciado por Stack, Abril 18, 2025.

  1. Stack

    Stack Membro Participativo

    I’m creating a simple project with my pylintrc file and get this error for the test method:

    method name - test_calculator_add_method_returns_correct_result - doesn't conform to snake_case naming style


    class TddInPythonExample(unittest.TestCase):
    """ This is a basic test class"""

    def test_calculator_add_method_returns_correct_result(self):
    """ This test the calculator add method """
    calc = Calculator()
    result = calc.add(2,2)
    self.assertEqual(4, result)

    Continue reading...

Compartilhe esta Página