PATH:
opt
/
alt
/
python37
/
lib
/
python3.7
/
site-packages
/
alembic
/
testing
from sqlalchemy.util import decorator @decorator def provide_metadata(fn, *args, **kw): """Provide bound MetaData for a single test, dropping afterwards.""" from . import config from sqlalchemy import schema metadata = schema.MetaData(config.db) self = args[0] prev_meta = getattr(self, 'metadata', None) self.metadata = metadata try: return fn(*args, **kw) finally: metadata.drop_all() self.metadata = prev_meta
[-] fixtures.py
[edit]
[-] provision.py
[edit]
[-] assertions.py
[edit]
[+]
__pycache__
[-] runner.py
[edit]
[-] env.py
[edit]
[+]
plugin
[-] engines.py
[edit]
[-] config.py
[edit]
[-] requirements.py
[edit]
[-] util.py
[edit]
[-] __init__.py
[edit]
[-] compat.py
[edit]
[+]
..
[-] mock.py
[edit]
[-] warnings.py
[edit]
[-] exclusions.py
[edit]