@pytest.fixture(scope='function')
def issues(db):
    db.session.query(Issue).delete()

    issues = [
        {
            'label': 'login',
            'email': 'admin@localhost.com',
            'question': '42.',
            'status': 'unread'
        },
        {
            'label': 'billing',
            'email': 'admin@localhost.com',
            'question': 'Hello.',
            'status': 'unread'
        }
    ]

    for issue in issues:
        db.session.add(Issue(**issue))

    db.session.commit()

    return db
Command-line tool.
dataset/ETHPy150Open nickjj/build-a-saas-app-with-flask/catwatch/tests/conftest.py/issues--crossover with--dataset/ETHPy150Open dschwilk/bibstuff/scripts/add2bib.py/main