]> git.madduck.net Git - etc/vim.git/blob - tests/data/cases/fmtonoff2.py

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Treat raw strings like other docstrings (#3947)
[etc/vim.git] / tests / data / cases / fmtonoff2.py
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