import pytest
from flaskr import create_app
from flaskr.seed import seed_command


@pytest.fixture
def client():
    app = create_app("Testing")
    client = app.test_client()

    # pushing the context
    ctx = app.app_context()
    ctx.push()

    # runner for cli command
    runner = app.test_cli_runner()

    # invoke the seed-db command
    runner.invoke(seed_command)

    yield client

    ctx.pop()

d4f6b80658c1cae3fd6c4fbaabc9d08d7701318b
<mask token>

<mask token>


@pytest.fixture
def client():
    app = create_app('Testing')
    client = app.test_client()
    ctx = app.app_context()
    ctx.push()
    runner = app.test_cli_runner()
    runner.invoke(seed_command)
    yield client
    ctx.pop()

import pytest
from flaskr import create_app
from flaskr.seed import seed_command


@pytest.fixture
def client():
    app = create_app('Testing')
    client = app.test_client()
    ctx = app.app_context()
    ctx.push()
    runner = app.test_cli_runner()
    runner.invoke(seed_command)
    yield client
    ctx.pop()

import pytest
from flaskr import create_app
from flaskr.seed import seed_command


@pytest.fixture
def client():
    app = create_app("Testing")
    client = app.test_client()

    # pushing the context
    ctx = app.app_context()
    ctx.push()

    # runner for cli command
    runner = app.test_cli_runner()

    # invoke the seed-db command
    runner.invoke(seed_command)

    yield client

    ctx.pop()
