forked from NOAA-GSL/pygraf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
conftest.py
37 lines (24 loc) · 827 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
'''
Add command line options to the pytest suite.
Each CLA needs to be defined in pytest_addoption and to have a pytest.fixture
function defined.
'''
import pytest
def pytest_addoption(parser):
''' Define command line arguments to be parsed. '''
parser.addoption('--nat-file',
action='store',
help='Path to nat-file.',
)
parser.addoption('--prs-file',
action='store',
help='Path to prs-file.',
)
@pytest.fixture
def natfile(request):
''' Interface to pass a grib file to pytest'''
return request.config.getoption('--nat-file')
@pytest.fixture
def prsfile(request):
''' Interface to pass a grib file to pytest'''
return request.config.getoption('--prs-file')