def reset_state(): """Reset caches of logged in users and requests sessions. Cache with logged in users is used to check if user has already logged in. Cache with sessions is used to reuse REST sessions between requests. """ users.reset_logged_in_users() session_pool.reset_sessions()
def reset_state(request): """Reset caches of logged in users and requests sessions. Cache with logged in users is used to check if user has already logged in. Cache with sessions is used to reuse REST sessions between requests. """ if "selenium" not in request.fixturenames: # Reset driver for non-browser tests. browsers.set_driver(None) users.reset_logged_in_users() session_pool.reset_sessions()
def reset_state(request): """Reset caches of logged in users and requests sessions. Cache with logged in users is used to check if user has already logged in. Cache with sessions is used to reuse REST sessions between requests. """ if "selenium" not in request.fixturenames: # Reset driver for non-browser tests. browsers.set_driver(None) users.reset_logged_in_users() session_pool.reset_sessions()
def reset_logged_in_users(): """Reset cache of logged in users. This cache is used to check if user has already logged in. """ users.reset_logged_in_users()
def reset_logged_in_users(): """Reset cache of logged in users. This cache is used to check if user has already logged in. """ users.reset_logged_in_users()