Module Import alias ImportFrom alias identifier ImportFrom alias alias ImportFrom alias alias Import alias FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str keyword Str Assign NameStore Call NameLoad keyword Str keyword Str keyword Str keyword Call AttributeLoad NameLoad attr Num Num Num keyword Str Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Str Expr Call AttributeLoad Call NameLoad Str NameLoad attr ListLoad Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assert CompareIn Str AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq AttributeLoad SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num attr Str Assert CompareEq AttributeLoad SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num attr Str Assert CompareEq AttributeLoad SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num attr Str Assert CompareEq AttributeLoad SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num attr Str Assert CompareEq AttributeLoad NameLoad attr Str Assert CompareEq AttributeLoad NameLoad attr Str decorator_list AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str keyword Str keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str keyword Str keyword Str Assign NameStore Call NameLoad keyword Str keyword Str keyword Str Assign NameStore Call NameLoad keyword Str keyword Str keyword Str Assign NameStore Call NameLoad keyword Str keyword Str keyword Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Expr Call AttributeLoad Call NameLoad Str NameLoad attr ListLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad Str NameLoad attr ListLoad Call AttributeLoad NameLoad attr Assert CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str keyword Str keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str keyword Str keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str keyword Str keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str keyword Str keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str keyword Str keyword Str Assign NameStore Call NameLoad Str Assert CompareEq Call AttributeLoad Call NameLoad Str NameLoad attr Str Str Assert CompareEq Call AttributeLoad Call NameLoad Str NameLoad attr Str Str Assert CompareEq Call AttributeLoad Call NameLoad Str NameLoad attr Str Str decorator_list AttributeLoad AttributeLoad NameLoad attr attr
N/A N/A pytest pupa.scrape Post ScrapePost pupa.importers PostImporter OrganizationImporter opencivicdata.models Organization Post N/A datetime test_full_post N/A N/A N/A N/A N/A org N/A N/A N/A Organization objects create name United States Executive Branch classification executive jurisdiction_id jurisdiction-id N/A post N/A ScrapePost label executive role President organization_id ~{"classification": "executive"} start_date N/A N/A datetime date 2015 5 18 end_date 2015-05-19 N/A N/A N/A post add_contact_detail type phone value 555-555-1234 note this is fake N/A N/A N/A post add_link http://example.com/link N/A oi N/A OrganizationImporter jurisdiction-id N/A N/A N/A N/A PostImporter jurisdiction-id oi import_data N/A N/A N/A post as_dict N/A p N/A N/A N/A Post objects get N/A N/A ocd-post N/A p id N/A N/A N/A p label N/A post label N/A N/A N/A p role N/A post role N/A N/A N/A p organization_id N/A org id N/A N/A N/A N/A N/A N/A N/A p contact_details all N/A 0 type phone N/A N/A N/A N/A N/A N/A N/A p contact_details all N/A 0 value 555-555-1234 N/A N/A N/A N/A N/A N/A N/A p contact_details all N/A 0 note this is fake N/A N/A N/A N/A N/A N/A N/A p links all N/A 0 url http://example.com/link N/A N/A N/A p start_date 2015-05-18 N/A N/A N/A p end_date 2015-05-19 N/A N/A N/A pytest mark django_db test_deduplication N/A N/A N/A N/A N/A N/A N/A N/A Organization objects create id us name United States Executive Branch classification executive jurisdiction_id us N/A N/A N/A N/A Organization objects create id nc name North Carolina Executive Branch classification executive jurisdiction_id nc N/A pres N/A ScrapePost label executive role President organization_id ~{"classification": "executive"} N/A vp N/A ScrapePost label vice-executive role Vice President organization_id ~{"classification": "executive"} N/A gov N/A ScrapePost label executive role Governor organization_id ~{"classification": "executive"} N/A us_oi N/A OrganizationImporter us N/A nc_oi N/A OrganizationImporter nc N/A N/A N/A N/A PostImporter us us_oi import_data N/A N/A N/A pres as_dict N/A N/A vp as_dict N/A N/A N/A N/A PostImporter nc nc_oi import_data N/A N/A N/A gov as_dict N/A N/A N/A N/A N/A Post objects count 3 N/A N/A N/A pytest mark django_db test_resolve_special_json_id N/A N/A N/A N/A N/A N/A N/A N/A Organization objects create id us name United States Executive Branch classification executive jurisdiction_id us N/A N/A N/A N/A Organization objects create id nc name North Carolina Executive Branch classification executive jurisdiction_id nc N/A N/A N/A N/A Post objects create id pres label executive role President organization_id us N/A N/A N/A N/A Post objects create id vpres label vice-executive role Vice President organization_id us N/A N/A N/A N/A Post objects create id gov label executive role Governor organization_id nc N/A oi N/A OrganizationImporter N/A N/A N/A N/A N/A PostImporter us oi resolve_json_id ~{"label": "executive"} pres N/A N/A N/A N/A N/A PostImporter us oi resolve_json_id ~{"label": "vice-executive"} vpres N/A N/A N/A N/A N/A PostImporter nc oi resolve_json_id ~{"label": "executive"} gov N/A N/A N/A pytest mark django_db