def pytest_itemcollected(item):
    """Attach a marker to each test which uses the alembic fixture.
    """
    if not hasattr(item, 'fixturenames'):
        return
    if 'alembic_runner' in item.fixturenames:
        item.add_marker('alembic')
