Skip to content

Instantly share code, notes, and snippets.

View richard-savant's full-sized avatar
🏠
Working from home

richard-savant

🏠
Working from home
View GitHub Profile
@qodot
qodot / pytest_flask_fixtures.py
Created November 10, 2016 01:30
Pytest Fixtures (Flask, SQLAlchemy, Alembic)
import sys
import pytest
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from alembic.command import upgrade as alembic_upgrade
from alembic.config import Config as AlembicConfig
from wsgi import create_app
from config import config