diff options
author | Eli Halych <illia.halych@t-mobile.pl> | 2020-11-24 09:59:07 +0000 |
---|---|---|
committer | Eli Halych <illia.halych@t-mobile.pl> | 2020-11-24 10:14:45 +0000 |
commit | dcccf6e2c90ef7b079ac6a4f6258b7d550fa79c5 (patch) | |
tree | 4d24f92105fb4142bda28d5637636dee41cef9b3 /test/mocks/mass-pnf-sim/conftest.py | |
parent | 6b92f67b5c2e41dfe6272f401989d17c7452c089 (diff) |
Change mass-pnf-sim folder name to masspnfsim
Details:
- Allows for importing python files/classes/methods via normal import.
- Dashes in mass-pnf-sim prevented from a normal Python import.
- mass-pnf-sim path referenced in the project files changed to masspnfsim.
- Possibility of using masspnfsim as a git submodule that requires noraml import.
Issue-ID: INT-1789
Signed-off-by: Eli Halych <illia.halych@t-mobile.pl>
Change-Id: I00cd753181c9b240b99881057cf777cf7977387a
Diffstat (limited to 'test/mocks/mass-pnf-sim/conftest.py')
-rw-r--r-- | test/mocks/mass-pnf-sim/conftest.py | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/test/mocks/mass-pnf-sim/conftest.py b/test/mocks/mass-pnf-sim/conftest.py deleted file mode 100644 index e6ee05667..000000000 --- a/test/mocks/mass-pnf-sim/conftest.py +++ /dev/null @@ -1,52 +0,0 @@ -import MassPnfSim -import pytest -from test_settings import * # pylint: disable=W0614 -from docker import from_env - -@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, '--user', FILESERVER_USER, '--password', - FILESERVER_PASSWORD]) - -@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']) - -@pytest.fixture(scope="module") -def args_trigger_custom(parser): - return parser.parse_args(['trigger_custom', '--triggerstart', '0', '--triggerend', str(SIM_INSTANCES-1)]) - -@pytest.fixture(scope="module") -def args_stop_simulator(parser): - return parser.parse_args(['stop_simulator']) - -@pytest.fixture -def args_clean(parser): - return parser.parse_args(['clean']) - -@pytest.fixture -def docker_containers(): - docker_client = from_env() - container_list = [] - for container in docker_client.containers.list(): - container_list.append(container.attrs['Name'][1:]) - return container_list |