Skip to content

Commit 69016ef

Browse files
committed
Reformat
1 parent f8493dc commit 69016ef

File tree

1 file changed

+37
-25
lines changed

1 file changed

+37
-25
lines changed

tests/test_recipe_v1.py

Lines changed: 37 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -21,44 +21,56 @@
2121
)
2222

2323

24-
@pytest.mark.parametrize("x", [
25-
"win",
26-
"not unix",
27-
'cuda_compiler_version == "None"',
28-
"build_platform != target_platform",
29-
])
24+
@pytest.mark.parametrize(
25+
"x",
26+
[
27+
"win",
28+
"not unix",
29+
'cuda_compiler_version == "None"',
30+
"build_platform != target_platform",
31+
],
32+
)
3033
def test_is_single_expression(x):
3134
assert is_single_expression(x)
3235

3336

34-
@pytest.mark.parametrize("x", [
35-
'cuda_compiler_version != "None" and linux"',
36-
'unix and blas_impl != "mkl"',
37-
"linux or osx",
38-
"foo if bar else baz",
39-
])
37+
@pytest.mark.parametrize(
38+
"x",
39+
[
40+
'cuda_compiler_version != "None" and linux"',
41+
'unix and blas_impl != "mkl"',
42+
"linux or osx",
43+
"foo if bar else baz",
44+
],
45+
)
4046
def test_not_is_single_expression(x):
4147
assert not is_single_expression(x)
4248

4349

44-
@pytest.mark.parametrize("a,b", [
45-
("unix", "not unix"),
46-
('cuda_compiler_version == "None"', 'not cuda_compiler_version == "None"'),
47-
('cuda_compiler_version == "None"', 'cuda_compiler_version != "None"'),
48-
('not cuda_compiler_version == "None"', 'not cuda_compiler_version != "None"'),
49-
])
50+
@pytest.mark.parametrize(
51+
"a,b",
52+
[
53+
("unix", "not unix"),
54+
('cuda_compiler_version == "None"', 'not cuda_compiler_version == "None"'),
55+
('cuda_compiler_version == "None"', 'cuda_compiler_version != "None"'),
56+
('not cuda_compiler_version == "None"', 'not cuda_compiler_version != "None"'),
57+
],
58+
)
5059
def test_is_negated_condition(a, b):
5160
assert is_negated_condition(a, b)
5261
assert is_negated_condition(b, a)
5362

5463

55-
@pytest.mark.parametrize("a,b", [
56-
("not unix", "not unix"),
57-
('cuda_compiler_version == "None"', 'not cuda_compiler_version != "None"'),
58-
('cuda_compiler_version != "None"', 'not cuda_compiler_version == "None"'),
59-
("a or b", "not a or b"),
60-
("a and b", "not a and b"),
61-
])
64+
@pytest.mark.parametrize(
65+
"a,b",
66+
[
67+
("not unix", "not unix"),
68+
('cuda_compiler_version == "None"', 'not cuda_compiler_version != "None"'),
69+
('cuda_compiler_version != "None"', 'not cuda_compiler_version == "None"'),
70+
("a or b", "not a or b"),
71+
("a and b", "not a and b"),
72+
],
73+
)
6274
def test_not_is_negated_condition(a, b):
6375
assert not is_negated_condition(a, b)
6476
assert not is_negated_condition(b, a)

0 commit comments

Comments
 (0)