Remove the need to declare 'name' parameter when using names
elimarkov opened this issue · 0 comments
elimarkov commented
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.