import pytest
from nesta.control.control import Control
from nesta.configs.util import parse_env, parse_config


@pytest.fixture(scope="session")
def control():
    env_dict = parse_env()
    configs = parse_config(env_dict["MODE"])
    ctrl = Control(configs=configs)
    yield ctrl

import pytest
from nesta.control.control import Control
from nesta.configs.util import parse_env, parse_config


@pytest.fixture(scope="session")
def control():
    env_dict = parse_env()
    configs = parse_config(env_dict["MODE"])
    ctrl = Control(configs=configs)
    yield ctrl
