def after_scenario(context, scenario):
    """Leave the environment fresh after each scenario."""

    # Move back into the original working directory.
    os.chdir(context.old_cwd)

    # Delete all content generated by the test.
    context.directory.cleanup()
def after_scenario ( context , scenario ) : os . chdir ( context . old_cwd ) context . directory . cleanup ( )
Leave the environment fresh after each scenario.