We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78bced9 commit 437281cCopy full SHA for 437281c
conftest.py
@@ -18,7 +18,19 @@
18
]
19
20
21
+ignore_collect = [
22
+ # jupyterhub stuff messes with the environment
23
+ 'cylc/uiserver/hubapp.py',
24
+ 'cylc/uiserver/scripts/hubapp.py',
25
+ 'cylc/uiserver/scripts/hub.py',
26
+ # the jupyter config cannot be imported
27
+ 'cylc/uiserver/jupyter_config.py',
28
+]
29
+
30
31
def pytest_ignore_collect(path):
32
# --doctest-modules seems to ignore the value if configured in pyproject
- if 'jupyter_config.py' in str(path):
- return True
33
+ return any(
34
+ ignore_path in str(path)
35
+ for ignore_path in ignore_collect
36
+ )
0 commit comments