def patch_sessions():
 from openedx.core.djangoapps.safe_sessions.testing import safe_cookie_test_session_patch
 safe_cookie_test_session_patch()

def patch_sessions ( ) : from openedx . core . djangoapps . safe_sessions . testing import safe_cookie_test_session_patch safe_cookie_test_session_patch ( )
override the test clients session and login to support safe cookies .