from fixtures import import_example_data
from supermarket import App, model

app = App("supermarket")


@app.shell_context_processor
def _make_shell_context():
    # Add database and models to shell context
    env = {"app": app}
    env.update(model.__dict__)
    return env


# Custom commands


@app.cli.command()
def fixture_example_data():
    """Reset database and import example data from fixtures."""
    import_example_data()

70ec911631e5faeb177a201fc178257b7c0a3685
<mask token>


@app.shell_context_processor
def _make_shell_context():
    env = {'app': app}
    env.update(model.__dict__)
    return env


<mask token>

<mask token>


@app.shell_context_processor
def _make_shell_context():
    env = {'app': app}
    env.update(model.__dict__)
    return env


@app.cli.command()
def fixture_example_data():
    """Reset database and import example data from fixtures."""
    import_example_data()

<mask token>
app = App('supermarket')


@app.shell_context_processor
def _make_shell_context():
    env = {'app': app}
    env.update(model.__dict__)
    return env


@app.cli.command()
def fixture_example_data():
    """Reset database and import example data from fixtures."""
    import_example_data()

from fixtures import import_example_data
from supermarket import App, model
app = App('supermarket')


@app.shell_context_processor
def _make_shell_context():
    env = {'app': app}
    env.update(model.__dict__)
    return env


@app.cli.command()
def fixture_example_data():
    """Reset database and import example data from fixtures."""
    import_example_data()

from fixtures import import_example_data
from supermarket import App, model

app = App("supermarket")


@app.shell_context_processor
def _make_shell_context():
    # Add database and models to shell context
    env = {"app": app}
    env.update(model.__dict__)
    return env


# Custom commands


@app.cli.command()
def fixture_example_data():
    """Reset database and import example data from fixtures."""
    import_example_data()
