Module Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr keyword NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad keyword AttributeLoad NameLoad attr Expr Call NameLoad keyword AttributeLoad NameLoad attr keyword Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr With Call NameLoad AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad NameStore body Expr Call AttributeLoad NameLoad attr keyword Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad With Call NameLoad AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad NameStore body Assign NameStore BinOpSub Call AttributeLoad NameLoad attr Call NameLoad keyword Num Assign NameStore Call AttributeLoad NameLoad attr keyword Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr attr Dict Str AttributeLoad NameLoad attr Dict Str Dict Str NameLoad Assign AttributeStore NameLoad attr NameLoad With Call NameLoad AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad NameStore body Assign NameStore BinOpSub Call AttributeLoad NameLoad attr Call NameLoad keyword Num Assign NameStore Call AttributeLoad NameLoad attr keyword Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr attr Dict Str AttributeLoad NameLoad attr Dict Str Dict Str NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad With Call NameLoad AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad NameStore body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call NameLoad Call NameLoad NameLoad Num Expr Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call NameLoad AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr Expr Call NameLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call NameLoad AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A mock datetime datetime timedelta nose.tools * tests.base OsfTestCase tests.utils mock_archive tests.factories AuthUserFactory NodeFactory framework.auth Auth website.project.sanctions Sanction EmbargoTerminationApproval scripts.approve_embargo_terminations main get_pending_embargo_termination_requests TestApproveEmbargoTerminations N/A OsfTestCase N/A tearDown N/A N/A self N/A N/A N/A N/A N/A mock patch framework.celery_tasks.handlers.queue N/A N/A mock Mock return_value None N/A N/A N/A N/A N/A super TestApproveEmbargoTerminations self tearDown N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestApproveEmbargoTerminations self setUp N/A N/A self user N/A AuthUserFactory N/A N/A self node N/A NodeFactory creator N/A self user N/A N/A NodeFactory creator N/A self user parent N/A NodeFactory creator N/A self user parent N/A self node N/A N/A mock_archive N/A self node embargo True autoapprove True registration N/A N/A N/A N/A registration request_embargo_termination auth N/A Auth N/A self user N/A N/A self registration1 registration N/A N/A mock_archive N/A self node embargo True autoapprove True registration N/A N/A old_time N/A N/A N/A datetime now N/A timedelta days 5 N/A approval N/A N/A registration request_embargo_termination auth N/A Auth N/A self user N/A N/A N/A N/A N/A N/A EmbargoTerminationApproval _storage N/A 0 store update N/A _id N/A approval _id N/A $set N/A initiation_date old_time N/A N/A self registration2 registration N/A N/A mock_archive N/A self node embargo True autoapprove True registration N/A N/A old_time N/A N/A N/A datetime now N/A timedelta days 5 N/A approval N/A N/A registration request_embargo_termination auth N/A Auth N/A self user N/A N/A N/A N/A N/A N/A EmbargoTerminationApproval _storage N/A 0 store update N/A _id N/A approval _id N/A $set N/A initiation_date old_time N/A N/A approval state N/A Sanction APPROVED N/A N/A N/A approval save N/A N/A self registration3 registration N/A N/A mock_archive N/A self node embargo True autoapprove True registration N/A N/A N/A self registration4 registration N/A N/A N/A EmbargoTerminationApproval _clear_caches N/A N/A N/A mock patch website.project.sanctions.TokenApprovableSanction.ask N/A N/A mock Mock test_get_pending_embargo_termination_requests_returns_only_unapproved N/A N/A self N/A N/A N/A targets N/A get_pending_embargo_termination_requests N/A N/A assert_equal N/A len targets 1 N/A N/A assert_equal N/A N/A targets N/A 0 _id N/A N/A N/A self registration2 embargo_termination_approval _id N/A test_main_auto_approves_embargo_termination_request N/A N/A self N/A N/A N/A node N/A N/A N/A self registration2 node_and_primary_descendants N/A N/A N/A assert_false N/A node is_public N/A N/A assert_true N/A node is_embargoed N/A N/A main N/A node N/A N/A N/A self registration2 node_and_primary_descendants N/A N/A N/A assert_true N/A node is_public N/A N/A assert_false N/A node is_embargoed N/A N/A