import pytest


@pytest.fixture(scope="session")
def command(target):
    shell = target.get_driver("CommandProtocol")
    target.activate(shell)
    return shell
