You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
elimarkov
changed the title
Remove the need declare 'name' parameter when using names
Remove the need to declare 'name' parameter when using names
Mar 4, 2021
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.
The text was updated successfully, but these errors were encountered: