import os

import pytest

from src._pyrrot import main
from src._pyrrot.config import read_configs


@pytest.fixture
def client():
    def make_client(path):
        app = main.create_app(debug=True)
        read_configs(app, path)
        return app.test_client()

    yield make_client


@pytest.fixture
def url_example_example():
    return os.path.join(os.path.dirname(__file__), "../examples/example.yaml")


@pytest.fixture
def url_example_header():
    return os.path.join(os.path.dirname(__file__), "../examples/example_header.yaml")


@pytest.fixture
def url_example_body():
    return os.path.join(os.path.dirname(__file__), "../examples/example_body.yaml")


@pytest.fixture
def url_example_query():
    return os.path.join(os.path.dirname(__file__), "../examples/example_query.yaml")


@pytest.fixture
def url_example_path():
    return os.path.join(os.path.dirname(__file__), "../examples/example_path.yaml")


@pytest.fixture
def url_example_regex():
    return os.path.join(os.path.dirname(__file__), "../examples/example_regex.yaml")

1a2774d6c9b1bbc5094fadd18354313e7abd0cb8
<mask token>


@pytest.fixture
def client():

    def make_client(path):
        app = main.create_app(debug=True)
        read_configs(app, path)
        return app.test_client()
    yield make_client


@pytest.fixture
def url_example_example():
    return os.path.join(os.path.dirname(__file__), '../examples/example.yaml')


<mask token>


@pytest.fixture
def url_example_body():
    return os.path.join(os.path.dirname(__file__),
        '../examples/example_body.yaml')


@pytest.fixture
def url_example_query():
    return os.path.join(os.path.dirname(__file__),
        '../examples/example_query.yaml')


<mask token>


@pytest.fixture
def url_example_regex():
    return os.path.join(os.path.dirname(__file__),
        '../examples/example_regex.yaml')

<mask token>


@pytest.fixture
def client():

    def make_client(path):
        app = main.create_app(debug=True)
        read_configs(app, path)
        return app.test_client()
    yield make_client


@pytest.fixture
def url_example_example():
    return os.path.join(os.path.dirname(__file__), '../examples/example.yaml')


<mask token>


@pytest.fixture
def url_example_body():
    return os.path.join(os.path.dirname(__file__),
        '../examples/example_body.yaml')


@pytest.fixture
def url_example_query():
    return os.path.join(os.path.dirname(__file__),
        '../examples/example_query.yaml')


@pytest.fixture
def url_example_path():
    return os.path.join(os.path.dirname(__file__),
        '../examples/example_path.yaml')


@pytest.fixture
def url_example_regex():
    return os.path.join(os.path.dirname(__file__),
        '../examples/example_regex.yaml')

<mask token>


@pytest.fixture
def client():

    def make_client(path):
        app = main.create_app(debug=True)
        read_configs(app, path)
        return app.test_client()
    yield make_client


@pytest.fixture
def url_example_example():
    return os.path.join(os.path.dirname(__file__), '../examples/example.yaml')


@pytest.fixture
def url_example_header():
    return os.path.join(os.path.dirname(__file__),
        '../examples/example_header.yaml')


@pytest.fixture
def url_example_body():
    return os.path.join(os.path.dirname(__file__),
        '../examples/example_body.yaml')


@pytest.fixture
def url_example_query():
    return os.path.join(os.path.dirname(__file__),
        '../examples/example_query.yaml')


@pytest.fixture
def url_example_path():
    return os.path.join(os.path.dirname(__file__),
        '../examples/example_path.yaml')


@pytest.fixture
def url_example_regex():
    return os.path.join(os.path.dirname(__file__),
        '../examples/example_regex.yaml')

import os
import pytest
from src._pyrrot import main
from src._pyrrot.config import read_configs


@pytest.fixture
def client():

    def make_client(path):
        app = main.create_app(debug=True)
        read_configs(app, path)
        return app.test_client()
    yield make_client


@pytest.fixture
def url_example_example():
    return os.path.join(os.path.dirname(__file__), '../examples/example.yaml')


@pytest.fixture
def url_example_header():
    return os.path.join(os.path.dirname(__file__),
        '../examples/example_header.yaml')


@pytest.fixture
def url_example_body():
    return os.path.join(os.path.dirname(__file__),
        '../examples/example_body.yaml')


@pytest.fixture
def url_example_query():
    return os.path.join(os.path.dirname(__file__),
        '../examples/example_query.yaml')


@pytest.fixture
def url_example_path():
    return os.path.join(os.path.dirname(__file__),
        '../examples/example_path.yaml')


@pytest.fixture
def url_example_regex():
    return os.path.join(os.path.dirname(__file__),
        '../examples/example_regex.yaml')

import os

import pytest

from src._pyrrot import main
from src._pyrrot.config import read_configs


@pytest.fixture
def client():
    def make_client(path):
        app = main.create_app(debug=True)
        read_configs(app, path)
        return app.test_client()

    yield make_client


@pytest.fixture
def url_example_example():
    return os.path.join(os.path.dirname(__file__), "../examples/example.yaml")


@pytest.fixture
def url_example_header():
    return os.path.join(os.path.dirname(__file__), "../examples/example_header.yaml")


@pytest.fixture
def url_example_body():
    return os.path.join(os.path.dirname(__file__), "../examples/example_body.yaml")


@pytest.fixture
def url_example_query():
    return os.path.join(os.path.dirname(__file__), "../examples/example_query.yaml")


@pytest.fixture
def url_example_path():
    return os.path.join(os.path.dirname(__file__), "../examples/example_path.yaml")


@pytest.fixture
def url_example_regex():
    return os.path.join(os.path.dirname(__file__), "../examples/example_regex.yaml")
