Skip to content

Commit 5ef92a2

Browse files
author
Paolo Tranquilli
committed
Rust: fix integration test on windows
1 parent 34361b8 commit 5ef92a2

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed
Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
import pytest
22

3+
def test_default(codeql, rust):
4+
codeql.database.create()
35

4-
@pytest.mark.parametrize("option",
6+
@pytest.mark.parametrize("features",
57
[
68
pytest.param(p,
79
marks=pytest.mark.ql_test(expected=f".{e}.expected"))
810
for p, e in (
9-
(None, "default"),
10-
("cargo_features=foo", "foo"),
11-
("cargo_features=bar", "bar"),
12-
("cargo_features=*", "all"),
13-
("cargo_features=foo,bar", "all"))
11+
("foo", "foo"),
12+
("bar", "bar"),
13+
("*", "all"),
14+
("foo,bar", "all"))
1415
])
15-
def test_features(codeql, rust, option):
16-
codeql.database.create(extractor_option=option)
16+
def test_features(codeql, rust, features):
17+
codeql.database.create(extractor_option=f"cargo_features={features}")

0 commit comments

Comments
 (0)