Run black in tests files
This commit is contained in:
parent
c10242c09d
commit
0d03c71237
@ -15,8 +15,16 @@ def test_buzzer_function_with_default_params():
|
||||
@pytest.mark.parametrize(
|
||||
"times, duration",
|
||||
[
|
||||
[1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9],
|
||||
]
|
||||
[1, 1],
|
||||
[2, 2],
|
||||
[3, 3],
|
||||
[4, 4],
|
||||
[5, 5],
|
||||
[6, 6],
|
||||
[7, 7],
|
||||
[8, 8],
|
||||
[9, 9],
|
||||
],
|
||||
)
|
||||
def test_buzzer_function(times, duration):
|
||||
instance = printer.Dummy()
|
||||
@ -36,7 +44,7 @@ def test_buzzer_function(times, duration):
|
||||
[3, -1, "duration must be between 1 and 9"],
|
||||
[3, 10, "duration must be between 1 and 9"],
|
||||
[3, 11, "duration must be between 1 and 9"],
|
||||
]
|
||||
],
|
||||
)
|
||||
def test_buzzer_fuction_with_outrange_values(times, duration, expected_message):
|
||||
instance = printer.Dummy()
|
||||
|
Loading…
x
Reference in New Issue
Block a user