parameterized icon indicating copy to clipboard operation
parameterized copied to clipboard

Remove the need to declare 'name' parameter when using names

Open elimarkov opened this issue 4 years ago • 0 comments

There should be no need to declare an extra unused parameter just because of adding a name. ''' class TestMathUnitTest(unittest.TestCase): @parameterized.expand([ ("negative", -1.5, -2.0), ("integer", 1, 1.0), ("large fraction", 1.6, 1), ]) def test_floor(self, name, input, expected): assert_equal(math.floor(input), expected) '''

Static analysis tools highlighting it as an error.

elimarkov avatar Mar 04 '21 13:03 elimarkov