We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 526e70a commit 5eedea3Copy full SHA for 5eedea3
1 file changed
tests/conftest.py
@@ -42,14 +42,14 @@ def pytest_addoption(parser):
42
parser.addoption("--only-xmlrpc", action="store_true", default=False)
43
44
45
-def pytest_ignore_collect(path, config):
+def pytest_ignore_collect(collection_path, config):
46
has_ro = config.getoption("--ro-functional")
47
has_ro_i = config.getoption("--ro-integration")
48
has_rw = config.getoption("--rw-functional")
49
50
- base = os.path.basename(str(path))
+ base = os.path.basename(str(collection_path))
51
is_ro = base == "test_ro_functional.py"
52
- is_ro_i = "tests/integration/ro" in str(path)
+ is_ro_i = "tests/integration/ro" in str(collection_path)
53
is_rw = base == "test_rw_functional.py"
54
55
if is_ro_i and not has_ro_i:
0 commit comments