mirror of
https://github.com/yandex/pgmigrate.git
synced 2024-11-13 00:14:22 +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
|