conftest.py 242 Bytes
Newer Older
Rob Carleski's avatar
Rob Carleski committed
1
2
3
import os
import subprocess

Paul Arthur's avatar
Paul Arthur committed
4
5
6
7
import pytest

pytest_plugins = "pep8"

Rob Carleski's avatar
Rob Carleski committed
8
9
10

@pytest.fixture(scope="session")
def mock_mcomm():
Paul Arthur's avatar
Paul Arthur committed
11
    p = subprocess.Popen(['python3', os.path.join(os.path.dirname(__file__), 'mock_mcomm.py')])
Rob Carleski's avatar
Rob Carleski committed
12
13
    yield p
    p.kill()