forked from MapServer/MapServer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconftest.py
43 lines (35 loc) · 944 Bytes
/
conftest.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# coding: utf-8
import os
import pytest
import sys
# Put the pymod dir on the path, so modules can `import pmstestlib`
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "pymod"))
# These files may be non-importable, and don't contain tests anyway.
# So we skip searching them during test collection.
collect_ignore = [ 'pymod/msautotest_viewer.py' ]
def pytest_addoption(parser):
parser.addoption(
"--strict_mode",
action="store_true",
default=False,
help="Strict mode",
)
parser.addoption(
"--valgrind",
action="store_true",
default=False,
help="Run under valgrind",
)
parser.addoption(
"--run_under_asan",
action="store_true",
default=False,
help="Run under ASAN",
)
parser.addoption(
"--renderer",
default=None
)
@pytest.fixture
def extra_args(request):
return request.config