switch order of cleaning working dirs and returning to cwd

This commit is contained in:
= 2020-05-29 17:14:47 -04:00
parent 5ce16cf341
commit c03f0ab2d7

View file

@ -52,6 +52,6 @@ def before_scenario(context, scenario):
def after_scenario(context, scenario):
"""After each scenario, restore all test data and remove working_dirs."""
clean_all_working_dirs()
if os.getcwd()!=CWD:
os.chdir(CWD)
clean_all_working_dirs()