-
Notifications
You must be signed in to change notification settings - Fork 1
/
conftest.py
33 lines (24 loc) · 924 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
import pytest
from dpp_test import params
# def pytest_addoption(parser):
# parser.addoption(
# "--present", action="store_true", help="specifies whether the trace has already been calculated"
# )
# parser.addoption(
# "--nb_file", action="store", default='IFServices.ipynb', help="specifies the full path to the notebook"
# )
# parser.addoption(
# "--endpoint", action="store", default='http://zenflows-debug.interfacer.dyne.org/api', help="specifies the endpoint to talk to"
# )
def pytest_addoption(parser):
for argmt in params:
parser.addoption(argmt['positional'][1], **argmt['params'])
@pytest.fixture
def present(request):
return request.config.getoption("--present")
@pytest.fixture
def nb_file(request):
return request.config.getoption("--nb_file")
@pytest.fixture
def endpoint(request):
return request.config.getoption("--endpoint")