Skip to content

Instantly share code, notes, and snippets.

View drmattyg's full-sized avatar

Matthew Gordon drmattyg

View GitHub Profile
@drmattyg
drmattyg / test_postgis_base.py
Created May 6, 2019 11:59
Postgre test fixtures
UNIT_TEST_DB_CONFIG = {'user': 'unittest', 'password': 'unittest',
'database': 'unittest', 'host': 'localhost', 'port': 5432}
JDBC_URL = 'postgresql://{user}:{password}@{host}:{port}/{database}'.format(**UNIT_TEST_DB_CONFIG)
class SchemaManager:
EXTRA_DROP_ACTIONS = []
def __init__(self, engine: sqa_engine, schema_base=AnalysisSchemaBase):
self.engine = engine