"""Shared test fixtures."""

import pytest

from gcplocal.server import create_app
from gcplocal.state import StateStore


@pytest.fixture
def state():
    return StateStore()


@pytest.fixture
def app(state):
    app = create_app(state)
    app.config["TESTING"] = True
    return app


@pytest.fixture
def client(app):
    return app.test_client()
