Skip to content

Commit 128a178

Browse files
committed
try to satisfy the linter
1 parent 18e981e commit 128a178

File tree

1 file changed

+24
-21
lines changed

1 file changed

+24
-21
lines changed

tests/test_main.py

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from pathlib import Path
55
from subprocess import run
66

7-
import parametrize_from_file as pff
87
import pytest
98

109
from devtools import Debug, debug
@@ -62,9 +61,10 @@ def test_print_generator(capsys):
6261

6362

6463
@pytest.mark.parametrize(
65-
['py_script', 'stdout'], [
64+
['py_script', 'stdout'],
65+
[
6666
(
67-
'''\
67+
"""\
6868
from devtools import debug
6969
7070
def test_func(v):
@@ -75,18 +75,19 @@ def test_func(v):
7575
debug(foobar)
7676
test_func(42)
7777
print('debug run.')
78-
''',
79-
'''\
78+
""",
79+
"""\
8080
running debug...
8181
/path/to/test.py:8 <module>
8282
foobar: 'hello world' (str) len=11
8383
/path/to/test.py:4 test_func
8484
'in test func' (str) len=12
8585
v: 42 (int)
8686
debug run.
87-
''',
88-
), (
89-
'''\
87+
""",
88+
),
89+
(
90+
"""\
9091
from devtools import debug
9192
9293
def f(x):
@@ -99,8 +100,8 @@ def g(x):
99100
x = 42
100101
debug(x, trace_=True)
101102
f(x)
102-
''',
103-
'''\
103+
""",
104+
"""\
104105
/path/to/test.py:11 <module>
105106
x: 42 (int)
106107
/path/to/test.py:12 <module>
@@ -110,9 +111,10 @@ def g(x):
110111
/path/to/test.py:5 f
111112
/path/to/test.py:8 g
112113
x: 42 (int)
113-
'''
114-
), (
115-
'''\
114+
""",
115+
),
116+
(
117+
"""\
116118
from devtools import debug
117119
118120
def f(x):
@@ -125,8 +127,8 @@ def g(x):
125127
x = 42
126128
print(debug.format(x, trace_=True))
127129
f(x)
128-
''',
129-
'''\
130+
""",
131+
"""\
130132
/path/to/test.py:11 <module>
131133
x: 42 (int)
132134
/path/to/test.py:12 <module>
@@ -136,9 +138,10 @@ def g(x):
136138
/path/to/test.py:5 f
137139
/path/to/test.py:8 g
138140
x: 42 (int)
139-
''',
140-
), (
141-
'''\
141+
""",
142+
),
143+
(
144+
"""\
142145
from devtools import debug
143146
144147
def f(x):
@@ -151,8 +154,8 @@ def g(x):
151154
x = 42
152155
debug.trace(x)
153156
f(x)
154-
''',
155-
'''\
157+
""",
158+
"""\
156159
/path/to/test.py:11 <module>
157160
x: 42 (int)
158161
/path/to/test.py:12 <module>
@@ -162,7 +165,7 @@ def g(x):
162165
/path/to/test.py:5 f
163166
/path/to/test.py:8 g
164167
x: 42 (int)
165-
'''
168+
""",
166169
),
167170
],
168171
)

0 commit comments

Comments
 (0)