aboutsummaryrefslogtreecommitdiffstats
path: root/test/mocks/mass-pnf-sim/conftest.py
blob: b1f688d1745c90c424a34964d5926d035eb1da1a (plain)
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
import MassPnfSim
import pytest
from test_settings import * # pylint: disable=W0614

@pytest.fixture(scope="module")
def parser():
    return MassPnfSim.get_parser()

@pytest.fixture(scope="module")
def args_bootstrap(parser):
    return parser.parse_args(['bootstrap', '--count', str(SIM_INSTANCES),
                             '--urlves', URLVES, '--ipfileserver', IPFILESERVER,
                             '--typefileserver', TYPEFILESERVER, '--ipstart',
                             IPSTART])

@pytest.fixture(scope="module")
def args_start(parser):
    return parser.parse_args(['start'])

@pytest.fixture(scope="module")
def args_stop(parser):
    return parser.parse_args(['stop'])

@pytest.fixture(scope="module")
def args_status(parser):
    return parser.parse_args(['status'])

@pytest.fixture(scope="module")
def args_trigger(parser):
    return parser.parse_args(['trigger'])