def environment(): """Fixture to setup and teardown the session environment. This fixture executes automatically for test session setup and teardown. Does not have any side effects to vCD. Setup tasks: - initialize variables (org/vdc href, client, amqp settings) Teardown tasks: - logout client """ env.init_environment() yield env.cleanup_environment()
def environment(): """Fixture to setup and teardown the session environment. This fixture executes automatically for test session setup and teardown. Does not have any side effects to vCD. Setup tasks: - initialize variables (org/vdc href, client, amqp settings) - delete directory 'system_tests/scripts' (if it exists) Teardown tasks: - logout client """ env.init_environment() env.delete_cust_scripts() yield env.cleanup_environment() env.delete_cust_scripts()