<reponame>fedorchukdmytro/test_global<filename>tests/conftest.py
import pytest
import subprocess


@pytest.fixture
def run_server():
    server_process = subprocess.Popen(['iperf3', '-s', '-1'])


@pytest.fixture
def run_client():
    with open('output.json', 'w') as f:
        client_process = subprocess.Popen(['iperf3', '-c', '127.0.0.1', '-J'], stdout=f,)
    client_process.wait()

import pytest
import subprocess


@pytest.fixture
def run_server():
    server_process = subprocess.Popen(['iperf3', '-s', '-1'])


@pytest.fixture
def run_client():
    with open('output.json', 'w') as f:
        client_process = subprocess.Popen(['iperf3', '-c', '127.0.0.1', '-J'], stdout=f,)
    client_process.wait()