mirror of
https://github.com/yandex/pgmigrate.git
synced 2024-11-09 16:36:05 +03:00
22 lines
460 B
Python
22 lines
460 B
Python
import shutil
|
|
|
|
|
|
def before_scenario(context, scenario):
|
|
try:
|
|
context.last_migrate_res = {}
|
|
context.callbacks = []
|
|
context.migrate_config = {}
|
|
shutil.rmtree(context.migr_dir)
|
|
except Exception:
|
|
pass
|
|
|
|
|
|
def after_all(context):
|
|
try:
|
|
context.last_migrate_res = {}
|
|
context.callbacks = []
|
|
context.migrate_config = {}
|
|
shutil.rmtree(context.migr_dir)
|
|
except Exception:
|
|
pass
|