import pytest
from falcon import testing
from smpa.app import create_app

from pytest_falcon.plugin import Client


@pytest.fixture
def app():
    application = create_app()
    application.req_options.auto_parse_form_urlencoded = True
    return application


@pytest.fixture
def mock_client(app):
    return testing.TestClient(app)


@pytest.fixture(scope="session")
def session_app():
    application = create_app()
    application.req_options.auto_parse_form_urlencoded = True
    return application


@pytest.fixture(scope="session")
def session_client(session_app):
    """A session scoped client fixture for doing multiple tests
    without restarting the application between each one.

    Args:
        session_app (fixture): The session scoped app fixture

    Yields:
        test client
    """
    yield Client(session_app)

771d23d86bcff11bd54014d2a1838c4f8d4fd5ec
<mask token>


@pytest.fixture(scope='session')
def session_app():
    application = create_app()
    application.req_options.auto_parse_form_urlencoded = True
    return application


<mask token>

<mask token>


@pytest.fixture
def mock_client(app):
    return testing.TestClient(app)


@pytest.fixture(scope='session')
def session_app():
    application = create_app()
    application.req_options.auto_parse_form_urlencoded = True
    return application


@pytest.fixture(scope='session')
def session_client(session_app):
    """A session scoped client fixture for doing multiple tests
    without restarting the application between each one.

    Args:
        session_app (fixture): The session scoped app fixture

    Yields:
        test client
    """
    yield Client(session_app)

<mask token>


@pytest.fixture
def app():
    application = create_app()
    application.req_options.auto_parse_form_urlencoded = True
    return application


@pytest.fixture
def mock_client(app):
    return testing.TestClient(app)


@pytest.fixture(scope='session')
def session_app():
    application = create_app()
    application.req_options.auto_parse_form_urlencoded = True
    return application


@pytest.fixture(scope='session')
def session_client(session_app):
    """A session scoped client fixture for doing multiple tests
    without restarting the application between each one.

    Args:
        session_app (fixture): The session scoped app fixture

    Yields:
        test client
    """
    yield Client(session_app)

import pytest
from falcon import testing
from smpa.app import create_app
from pytest_falcon.plugin import Client


@pytest.fixture
def app():
    application = create_app()
    application.req_options.auto_parse_form_urlencoded = True
    return application


@pytest.fixture
def mock_client(app):
    return testing.TestClient(app)


@pytest.fixture(scope='session')
def session_app():
    application = create_app()
    application.req_options.auto_parse_form_urlencoded = True
    return application


@pytest.fixture(scope='session')
def session_client(session_app):
    """A session scoped client fixture for doing multiple tests
    without restarting the application between each one.

    Args:
        session_app (fixture): The session scoped app fixture

    Yields:
        test client
    """
    yield Client(session_app)

import pytest
from falcon import testing
from smpa.app import create_app

from pytest_falcon.plugin import Client


@pytest.fixture
def app():
    application = create_app()
    application.req_options.auto_parse_form_urlencoded = True
    return application


@pytest.fixture
def mock_client(app):
    return testing.TestClient(app)


@pytest.fixture(scope="session")
def session_app():
    application = create_app()
    application.req_options.auto_parse_form_urlencoded = True
    return application


@pytest.fixture(scope="session")
def session_client(session_app):
    """A session scoped client fixture for doing multiple tests
    without restarting the application between each one.

    Args:
        session_app (fixture): The session scoped app fixture

    Yields:
        test client
    """
    yield Client(session_app)
