Module ImportFrom alias Import alias Import alias ImportFrom alias ImportFrom alias alias Import alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam NameParam defaults NameLoad NameLoad kwarg body Assign NameStore Call NameLoad Str Assign NameStore BoolOpOr NameLoad ListLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad Return Str decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Return Str decorator_list Call AttributeLoad NameLoad attr Str Return TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args defaults body Return Str decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Assert CompareEq AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assert CompareEq AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore NameStore Call NameLoad Assign AttributeStore NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args defaults body Return Str decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr FunctionDef arguments args defaults body Return Str decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr Str Assert CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Assert CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign AttributeStore NameLoad attr Lambda arguments args NameParam defaults Str Assign NameStore Call AttributeLoad NameLoad attr Str Assert CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Str Str decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore NameStore Call NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args defaults body Return Str decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr keyword Str FunctionDef arguments args defaults body Return Str decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr keyword ListLoad Str Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assert CompareEq AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assert CompareEq AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assert CompareEq AttributeLoad NameLoad attr Str Assert CompareEq AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Assert CompareEq AttributeLoad NameLoad attr Str Assert CompareEq AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore NameStore Call NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args defaults body Return Call AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr FunctionDef arguments args defaults body Return Str decorator_list Call AttributeLoad NameLoad attr Str keyword ListLoad Str Str Call AttributeLoad NameLoad attr keyword NameLoad FunctionDef arguments args defaults body Return Str decorator_list Call AttributeLoad NameLoad attr Str keyword ListLoad Str Str Call AttributeLoad NameLoad attr FunctionDef arguments args defaults body Return Str decorator_list Call AttributeLoad NameLoad attr Str keyword ListLoad Str Str Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assert CompareEq AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assert CompareEq AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assert CompareEq AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad Assert CompareEq AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword Dict AttributeLoad NameLoad attr NameLoad Assert CompareEq AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword Dict Str NameLoad Assert CompareEq AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore NameStore Call NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListLoad FunctionDef arguments args defaults vararg kwarg body Expr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args defaults vararg kwarg body Expr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args defaults vararg kwarg body Expr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args defaults body Return Str decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr NameLoad NameLoad FunctionDef arguments args defaults body Return Str decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assert CompareEq NameLoad ListLoad Str Str Assert CompareEq AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assert CompareEq NameLoad ListLoad Str Str Str Str Assert CompareEq AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore NameStore Call NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults vararg kwarg body Return NameLoad decorator_list Assign AttributeStore NameLoad attr NameLoad FunctionDef arguments args defaults body Return Str decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr keyword NameLoad FunctionDef arguments args defaults body Return Str decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr keyword NameLoad FunctionDef arguments args defaults body Return Str decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assert CompareEq AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assert CompareEq AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assert CompareEq AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore NameStore Call NameLoad Assign AttributeStore NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args defaults body Return Call AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad FunctionDef arguments args defaults body Return Str decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args defaults body Return Str decorator_list Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Assert CompareEq AttributeLoad NameLoad attr Str Assert CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Assert CompareEq AttributeLoad NameLoad attr Str Assert CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assert CompareEq AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assert CompareEq AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad Assert CompareEq AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad Assert CompareEq AttributeLoad NameLoad attr Str decorator_list
N/A __future__ print_function N/A os N/A authcode authcode._compat to_native flask Flask Blueprint N/A pytest sqlalchemy_wrapper SQLAlchemy helpers SECRET_KEY get_flask_app N/A N/A roles views N/A False None kwargs N/A N/A db N/A SQLAlchemy sqlite:///:memory: N/A views N/A views N/A N/A auth N/A N/A authcode Auth SECRET_KEY db db roles roles views views kwargs N/A User N/A auth User N/A N/A N/A db create_all N/A user N/A User login meh password foobar N/A N/A N/A db add user N/A N/A N/A db commit N/A app N/A Flask test N/A N/A app secret_key N/A N/A os urandom 32 N/A N/A app testing True N/A N/A N/A authcode setup_for_flask auth app login N/A N/A N/A N/A N/A user N/A N/A User by_id 1 N/A N/A N/A auth login user N/A login N/A N/A N/A app route /login/ logout N/A N/A N/A N/A N/A N/A N/A auth logout N/A logout N/A N/A N/A app route /logout/ N/A N/A auth app user N/A test_protected N/A N/A N/A N/A N/A N/A auth app user N/A get_flask_app N/A client N/A N/A app test_client admin N/A N/A N/A N/A N/A N/A N/A N/A app route /admin/ N/A N/A auth protected N/A resp N/A N/A client get /admin/ N/A N/A N/A resp status 303 SEE OTHER N/A N/A N/A client get /login/ N/A resp N/A N/A client get /admin/ N/A N/A N/A resp status 200 OK N/A test_signin_url N/A N/A N/A N/A N/A N/A auth app user N/A get_flask_app N/A N/A auth url_sign_in /sign-in/ N/A client N/A N/A app test_client admin1 N/A N/A N/A N/A N/A N/A N/A N/A app route /admin1/ N/A N/A auth protected admin2 N/A N/A N/A N/A N/A N/A N/A N/A app route /admin2/ N/A N/A auth protected url_sign_in /users/sign-in/ N/A resp N/A N/A client get /admin1/ N/A N/A N/A N/A N/A resp headers get location http://localhost/sign-in/ N/A resp N/A N/A client get /admin2/ N/A N/A N/A N/A N/A resp headers get location http://localhost/users/sign-in/ N/A N/A auth url_sign_in N/A N/A N/A request N/A /login/ N/A resp N/A N/A client get /admin1/ N/A N/A N/A N/A N/A resp headers get location http://localhost/login/ N/A test_protected_role N/A N/A N/A N/A N/A N/A auth app user N/A get_flask_app roles True N/A client N/A N/A app test_client admin1 N/A N/A N/A N/A N/A admin1 N/A N/A N/A app route /admin1/ N/A N/A auth protected role admin admin2 N/A N/A N/A N/A N/A admin2 N/A N/A N/A app route /admin2/ N/A N/A auth protected roles N/A editor admin N/A N/A N/A client get /login/ N/A resp N/A N/A client get /admin1/ N/A N/A N/A resp status 403 FORBIDDEN N/A resp N/A N/A client get /admin2/ N/A N/A N/A resp status 403 FORBIDDEN N/A N/A N/A user add_role admin N/A N/A N/A N/A auth db commit N/A N/A N/A client get /login/ N/A resp N/A N/A client get /admin1/?r=123/ N/A N/A N/A resp status 200 OK N/A N/A N/A resp data admin1 N/A resp N/A N/A client get /admin2/?r=456/ N/A N/A print N/A N/A N/A user roles all N/A N/A N/A resp status 200 OK N/A N/A N/A resp data admin2 N/A test_protected_csrf N/A N/A N/A N/A N/A N/A auth app user N/A get_flask_app roles True N/A client N/A N/A app test_client gettoken N/A N/A N/A N/A N/A N/A N/A auth get_csrf_token N/A N/A N/A app route /gettoken/ N/A N/A auth protected delete N/A N/A N/A N/A N/A N/A N/A N/A app route /delete/ methods N/A GET POST N/A N/A auth protected csrf True update N/A N/A N/A N/A N/A N/A N/A N/A app route /update/ methods N/A GET POST N/A N/A auth protected whatever N/A N/A N/A N/A N/A N/A N/A N/A app route /whatever/ methods N/A GET POST N/A N/A auth protected csrf False N/A N/A N/A client get /login/ N/A resp N/A N/A client get /delete/ N/A N/A N/A resp status 403 FORBIDDEN N/A resp N/A N/A client post /update/ N/A N/A N/A resp status 403 FORBIDDEN N/A resp N/A N/A client post /whatever/ N/A N/A N/A resp status 200 OK N/A resp N/A N/A client get /gettoken/ N/A token N/A to_native N/A resp data N/A resp N/A N/A client get N/A N/A /delete/?{0}={1} format N/A auth csrf_key token N/A N/A N/A resp status 200 OK N/A resp N/A N/A client post /update/ data N/A N/A auth csrf_key token N/A N/A N/A resp status 200 OK N/A resp N/A N/A client post /update/ headers N/A X-CSRFToken token N/A N/A N/A resp status 200 OK N/A test_protected_tests N/A N/A N/A N/A N/A N/A auth app user N/A get_flask_app roles True N/A client N/A N/A app test_client N/A log N/A test1 N/A N/A N/A args kwargs N/A N/A N/A N/A log append test1 N/A True N/A test2 N/A N/A N/A args kwargs N/A N/A N/A N/A log append test2 N/A True N/A fail N/A N/A N/A args kwargs N/A N/A N/A N/A log append fail N/A False N/A admin1 N/A N/A N/A N/A N/A N/A N/A N/A app route /admin1/ N/A N/A auth protected test1 test2 admin2 N/A N/A N/A N/A N/A N/A N/A N/A app route /admin2/ N/A N/A auth protected test1 fail test2 N/A N/A N/A client get /login/ N/A resp N/A N/A client get /admin1/ N/A N/A log N/A test1 test2 N/A N/A N/A resp status 200 OK N/A resp N/A N/A client get /admin2/ N/A N/A log N/A test1 test2 test1 fail N/A N/A N/A resp status 403 FORBIDDEN N/A test_protected_user_tests N/A N/A N/A N/A N/A N/A auth app user N/A get_flask_app roles True N/A client N/A N/A app test_client echo N/A N/A value N/A args kwargs N/A N/A value N/A N/A N/A user echo echo yay N/A N/A N/A N/A N/A yay N/A N/A N/A app route /yay/ N/A N/A auth protected echo True fail N/A N/A N/A N/A N/A fail N/A N/A N/A app route /fail/ N/A N/A auth protected echo False foobar N/A N/A N/A N/A N/A foobar N/A N/A N/A app route /foobar/ N/A N/A auth protected unknown False N/A resp N/A N/A client get /yay/ N/A N/A N/A resp status 303 SEE OTHER N/A N/A N/A client get /login/ N/A resp N/A N/A client get /yay/ N/A N/A N/A resp status 200 OK N/A resp N/A N/A client get /fail/ N/A N/A N/A resp status 403 FORBIDDEN N/A N/A N/A pytest raises AttributeError N/A N/A resp N/A N/A client get /foobar/ N/A test_replace_flask_route N/A N/A N/A N/A N/A N/A auth app user N/A get_flask_app N/A N/A auth url_sign_in /login/ N/A client N/A N/A app test_client gettoken N/A N/A N/A N/A N/A N/A N/A auth get_csrf_token N/A N/A N/A app route /gettoken/ N/A N/A N/A auth replace_flask_route app csrf True page1 N/A N/A N/A N/A N/A yay N/A N/A N/A app route /page1/ page2 N/A N/A N/A N/A N/A yay N/A N/A N/A app route /page2/ N/A resp N/A N/A client get /gettoken/ N/A token N/A to_native N/A resp data N/A resp N/A N/A client get /page1/ N/A N/A N/A resp status 303 SEE OTHER N/A N/A N/A N/A N/A resp headers get location http://localhost/login/ N/A resp N/A N/A client get /page2/ N/A N/A N/A resp status 303 SEE OTHER N/A N/A N/A N/A N/A resp headers get location http://localhost/login/ N/A N/A N/A client get /login/ N/A resp N/A N/A client get /page1/ N/A N/A N/A resp status 403 FORBIDDEN N/A resp N/A N/A client get /page2/ N/A N/A N/A resp status 403 FORBIDDEN N/A resp N/A N/A client get N/A N/A /page1/?{0}={1} format N/A auth csrf_key token N/A N/A N/A resp status 200 OK N/A resp N/A N/A client get N/A N/A /page2/?{0}={1} format N/A auth csrf_key token N/A N/A N/A resp status 200 OK N/A