| 1 |
import pytest |
| 2 |
|
| 3 |
TmSt = 1 |
| 4 |
TmEx = 2 |
| 5 |
|
| 6 |
# fmt: off |
| 7 |
|
| 8 |
# Test data: |
| 9 |
# Position, Volume, State, TmSt/TmEx/None, [call, [arg1...]] |
| 10 |
|
| 11 |
@pytest.mark.parametrize('test', [ |
| 12 |
|
| 13 |
# Test don't manage the volume |
| 14 |
[ |
| 15 |
('stuff', 'in') |
| 16 |
], |
| 17 |
]) |
| 18 |
def test_fader(test): |
| 19 |
pass |
| 20 |
|
| 21 |
def check_fader(test): |
| 22 |
|
| 23 |
pass |
| 24 |
|
| 25 |
def verify_fader(test): |
| 26 |
# misaligned comment |
| 27 |
pass |
| 28 |
|
| 29 |
def verify_fader(test): |
| 30 |
"""Hey, ho.""" |
| 31 |
assert test.passed() |
| 32 |
|
| 33 |
def test_calculate_fades(): |
| 34 |
calcs = [ |
| 35 |
# one is zero/none |
| 36 |
(0, 4, 0, 0, 10, 0, 0, 6, 10), |
| 37 |
(None, 4, 0, 0, 10, 0, 0, 6, 10), |
| 38 |
] |
| 39 |
|
| 40 |
# fmt: on |