Run black in tests files

This commit is contained in:
Alfredo Orozco 2023-07-25 22:32:58 -06:00
parent c10242c09d
commit 0d03c71237

View File

@ -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()