Module Expr Str ImportFrom alias Import alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias alias alias FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Num decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad Str Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Index Num decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad Str Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Index Num decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad Str Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad Str Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Index Num decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad Str Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Index Num decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad ListLoad Str Str Str Str Str Str Str Str Str attr NameLoad Assign NameStore Call NameLoad Call NameLoad Str Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Index Num decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad ListLoad Str Str Str Str Str Str Str Str Str attr NameLoad Assign NameStore Call NameLoad Call NameLoad Str Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Index Num decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad ListLoad Str Str Str Str Str Str Str Str Str attr NameLoad Assign NameStore Call NameLoad Call NameLoad Str Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Index Num decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr ListLoad Str Str Expr Call AttributeLoad NameLoad attr Str TupleLoad Num Num Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad With Call NameLoad NameLoad Str NameStore body Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Num Num decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Assign AttributeStore SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Num attr Num decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Num BinOpMod Str AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Num BinOpMod Str AttributeLoad NameLoad attr decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Num BinOpMod Str AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Num BinOpMod Str AttributeLoad NameLoad attr decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Num BinOpMod Str AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Num BinOpMod Str AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Num BinOpMod Str AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Num BinOpMod Str AttributeLoad NameLoad attr decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Num BinOpMod Str AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Num BinOpMod Str AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Num BinOpMod Str AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Num BinOpMod Str AttributeLoad NameLoad attr decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assert CompareEq AttributeLoad NameLoad attr NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assert CompareEq AttributeLoad NameLoad attr NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assert Call NameLoad NameLoad NameLoad Assert CompareIs AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assert CompareEq NameLoad NameLoad BinOpMod Str NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore BinOpMod Str NameLoad Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assert CompareEq NameLoad NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Assert CompareEq AttributeLoad NameLoad attr Num decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assert AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assert CompareEq AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assert AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore TupleLoad TupleLoad Str Num TupleLoad Str Num TupleLoad Str Num TupleLoad Str Num For TupleStore NameStore NameStore NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad Assert CompareEq NameLoad NameLoad BinOpMod Str NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore SubscriptLoad Dict Str Str TupleLoad Str Str TupleLoad Str Str Index NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad BinOpSub NameLoad NameLoad Assert CompareLt NameLoad Num BinOpMod Str TupleLoad NameLoad NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assert CompareEq Call NameLoad AttributeLoad NameLoad attr Num Assert CompareEq Call NameLoad AttributeLoad NameLoad attr Num decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore AttributeLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr attr Assign NameStore AttributeLoad SubscriptLoad AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num attr Index Num attr Assert CompareEq NameLoad NameLoad decorator_list Call NameLoad Str
N/A N/A 
Gherkin step implementations for placeholder-related features.
 __future__ absolute_import N/A hashlib behave given when then pptx Presentation pptx.chart.data ChartData pptx.enum.chart XL_CHART_TYPE pptx.enum.shapes MSO_SHAPE_TYPE PP_PLACEHOLDER pptx.shapes.base _PlaceholderFormat helpers saved_pptx_path test_file test_pptx test_text given_a_bullet_body_placeholder N/A N/A context N/A N/A N/A N/A context prs N/A Presentation N/A slide_layout N/A N/A N/A context prs slide_layouts N/A 1 N/A N/A context sld N/A N/A N/A N/A context prs slides add_slide slide_layout N/A N/A context body N/A N/A N/A N/A context sld shapes placeholders N/A 1 N/A N/A given a bullet body placeholder given_a_known_placeholder_shape N/A N/A context placeholder_type N/A N/A N/A N/A N/A context execute_steps N/A given an unpopulated %s placeholder shape placeholder_type N/A N/A given a known {placeholder_type} placeholder shape given_layout_placeholder_with_directly_set_pos_and_size N/A N/A context N/A N/A N/A prs N/A Presentation N/A test_pptx ph-inherit-props N/A N/A context placeholder N/A N/A N/A N/A prs slide_layouts N/A 0 placeholders N/A 1 N/A N/A given a layout placeholder having directly set position and size given_layout_placeholder_with_no_direct_pos_or_size_settings N/A N/A context N/A N/A N/A prs N/A Presentation N/A test_pptx ph-inherit-props N/A N/A context placeholder N/A N/A N/A N/A prs slide_layouts N/A 0 placeholders N/A 0 N/A N/A given a layout placeholder having no direct position or size settings given_a_master_placeholder N/A N/A context N/A N/A N/A prs N/A Presentation N/A test_pptx ph-inherit-props N/A N/A context master_placeholder N/A N/A N/A prs slide_master placeholders N/A 1 N/A N/A given a master placeholder given_slide_placeholder_with_directly_set_pos_and_size N/A N/A context N/A N/A N/A prs N/A Presentation N/A test_pptx ph-inherit-props N/A N/A context placeholder N/A N/A N/A N/A prs slides N/A 0 placeholders N/A 10 N/A N/A given a slide placeholder having directly set position and size given_slide_placeholder_with_no_direct_pos_or_size_settings N/A N/A context N/A N/A N/A prs N/A Presentation N/A test_pptx ph-inherit-props N/A N/A context placeholder N/A N/A N/A N/A prs slides N/A 0 placeholders N/A 0 N/A N/A given a slide placeholder having no direct position or size settings given_a_slide_with_an_unpopulated_type_placeholder N/A N/A context type_ N/A N/A N/A slide_idx N/A N/A N/A title content text chart table smart art media clip art picture index type_ N/A prs N/A Presentation N/A test_pptx ph-unpopulated-placeholders N/A N/A context shape N/A N/A N/A N/A prs slides N/A slide_idx shapes N/A 0 N/A N/A given a slide with an unpopulated {type_} placeholder given_a_slide_with_a_type_ph_with_content N/A N/A context type_ content N/A N/A N/A slide_idx N/A N/A N/A picture clip art table chart title content text smart art media index type_ N/A prs N/A Presentation N/A test_pptx ph-populated-placeholders N/A N/A context shape N/A N/A N/A N/A prs slides N/A slide_idx shapes N/A 0 N/A N/A given a slide with a {type_} placeholder populated with {content} given_an_unpopulated_placeholder_shape N/A N/A context placeholder_type N/A N/A N/A slide_idx N/A N/A N/A title content text chart table smart art media clip art picture index placeholder_type N/A prs N/A Presentation N/A test_pptx ph-unpopulated-placeholders N/A N/A context shape N/A N/A N/A N/A prs slides N/A slide_idx shapes N/A 0 N/A N/A given an unpopulated {placeholder_type} placeholder shape when_I_call_placeholder_insert_chart N/A N/A context N/A N/A N/A chart_data N/A ChartData N/A N/A chart_data categories N/A Yes No N/A N/A N/A chart_data add_series Series 1 N/A 42 24 N/A placeholder N/A context shape N/A N/A context placeholder N/A N/A placeholder insert_chart N/A XL_CHART_TYPE PIE chart_data N/A N/A when I call placeholder.insert_chart(XL_CHART_TYPE.PIE, chart_data) when_I_call_placeholder_insert_picture N/A N/A context filename N/A N/A N/A placeholder N/A context shape N/A path N/A test_file filename N/A N/A open path rb f N/A N/A N/A context image_sha1 N/A N/A N/A N/A hashlib sha1 N/A N/A f read hexdigest N/A N/A context placeholder N/A N/A placeholder insert_picture path N/A N/A when I call placeholder.insert_picture('{filename}') when_I_call_placeholder_insert_table N/A N/A context N/A N/A N/A placeholder N/A context shape N/A N/A context placeholder N/A N/A placeholder insert_table 2 3 N/A N/A when I call placeholder.insert_table(rows=2, cols=3) when_I_indent_the_first_paragraph N/A N/A context N/A N/A N/A N/A N/A N/A N/A N/A context body text_frame paragraphs N/A 0 level 1 N/A N/A when I indent the first paragraph step_when_set_slide_title_text N/A N/A context N/A N/A N/A N/A N/A N/A N/A context slide shapes title text test_text N/A N/A when I set the title text of the slide then_I_can_get_the_placeholder_dimensions N/A N/A context N/A N/A N/A placeholder N/A context master_placeholder N/A N/A N/A placeholder width 6923112 N/A got %d N/A placeholder width N/A N/A N/A placeholder height 3484984 N/A got %d N/A placeholder height N/A N/A then I can get the placeholder dimensions then_I_can_get_the_placeholder_position N/A N/A context N/A N/A N/A placeholder N/A context master_placeholder N/A N/A N/A placeholder left 1110444 N/A got %d N/A placeholder left N/A N/A N/A placeholder top 1686508 N/A got %d N/A placeholder top N/A N/A then I can get the placeholder position then_I_get_direct_settings_when_query_pos_and_size N/A N/A context N/A N/A N/A placeholder N/A context placeholder N/A N/A N/A placeholder left 468312 N/A got %s N/A placeholder left N/A N/A N/A placeholder top 1700212 N/A got %s N/A placeholder top N/A N/A N/A placeholder width 8208143 N/A got %s N/A placeholder width N/A N/A N/A placeholder height 4537099 N/A got %s N/A placeholder height N/A N/A then I get the direct settings when I query position and size then_I_get_inherited_settings_when_I_query_position_and_size N/A N/A context N/A N/A N/A placeholder N/A context placeholder N/A N/A N/A placeholder left 457200 N/A got %s N/A placeholder left N/A N/A N/A placeholder top 274638 N/A got %s N/A placeholder top N/A N/A N/A placeholder width 8229600 N/A got %s N/A placeholder width N/A N/A N/A placeholder height 1143000 N/A got %s N/A placeholder height N/A N/A then I get inherited settings when I query position and size then_placeholder_format_idx_is_value N/A N/A context value N/A N/A N/A expected_value N/A int value N/A placeholder_format N/A N/A context shape placeholder_format N/A N/A N/A placeholder_format idx expected_value N/A N/A then placeholder_format.idx is {value} then_placeholder_format_type_is_value N/A N/A context value N/A N/A N/A expected_value N/A getattr PP_PLACEHOLDER N/A N/A N/A value split . N/A 1 N/A placeholder_format N/A N/A context shape placeholder_format N/A N/A N/A placeholder_format type expected_value N/A N/A then placeholder_format.type is {value} then_shape_placeholder_format_is_its_PlaceholderFormat_object N/A N/A context N/A N/A N/A shape N/A context shape N/A placeholder_format N/A shape placeholder_format N/A N/A isinstance placeholder_format _PlaceholderFormat N/A N/A N/A placeholder_format element N/A N/A shape element ph N/A N/A then shape.placeholder_format is its _PlaceholderFormat object then_shape_shape_type_is_PLACEHOLDER N/A N/A context N/A N/A N/A shape N/A context shape N/A N/A N/A shape shape_type N/A MSO_SHAPE_TYPE PLACEHOLDER N/A N/A then shape.shape_type is MSO_SHAPE_TYPE.PLACEHOLDER then_slide_shapes_0_is_a_cls_proxy_for_that_placeholder N/A N/A context cls N/A N/A N/A placeholder N/A context shape N/A clsname N/A N/A placeholder __class__ __name__ N/A N/A clsname cls N/A got %s clsname N/A N/A then slide.shapes[0] is a {cls} proxy object for that placeholder then_the_chart_is_a_pie_chart N/A N/A context N/A N/A N/A chart N/A context chart N/A N/A N/A chart chart_type N/A XL_CHART_TYPE PIE N/A N/A then the chart is a pie chart then_the_return_value_is_a_PlaceholderType_object N/A N/A context type N/A N/A N/A expected_type_name N/A Placeholder%s type N/A placeholder_type_name N/A N/A N/A context placeholder __class__ __name__ N/A N/A placeholder_type_name expected_type_name N/A N/A then the return value is a Placeholder{type} object then_the_paragraph_is_indented N/A N/A context N/A N/A N/A prs N/A Presentation saved_pptx_path N/A sld N/A N/A prs slides N/A 0 N/A body N/A N/A N/A sld shapes placeholders N/A 1 N/A p N/A N/A N/A body text_frame paragraphs N/A 0 N/A N/A N/A p level 1 N/A N/A then the paragraph is indented then_the_placeholder_contains_the_chart N/A N/A context N/A N/A N/A placeholder_graphic_frame N/A context placeholder N/A N/A placeholder_graphic_frame has_chart N/A N/A context chart N/A placeholder_graphic_frame chart N/A N/A then the placeholder contains the chart then_the_placeholder_contains_the_image N/A N/A context N/A N/A N/A placeholder_picture N/A context placeholder N/A N/A N/A N/A placeholder_picture image sha1 N/A context image_sha1 N/A N/A then the placeholder contains the image then_the_placeholder_contains_the_table N/A N/A context N/A N/A N/A placeholder_graphic_frame N/A context placeholder N/A N/A placeholder_graphic_frame has_table N/A N/A context table_ N/A placeholder_graphic_frame table N/A N/A then the placeholder contains the table then_the_placeholders_position_and_size_are_inherited N/A N/A context N/A N/A N/A placeholder N/A context shape N/A expected_values N/A N/A left 2743200 N/A top 2057400 N/A width 3657600 N/A height 2743200 N/A N/A prop_name expected_value expected_values N/A N/A value N/A getattr placeholder prop_name N/A N/A value expected_value N/A got %s value N/A N/A then the placeholder's position and size are inherited from its layout then_the_sides_crop_is_value N/A N/A context sides value N/A N/A N/A side_prop_names N/A N/A top and bottom left and right N/A crop_top crop_bottom N/A crop_left crop_right N/A sides N/A expected_value N/A float value N/A placeholder_picture N/A context placeholder N/A prop_name side_prop_names N/A N/A value N/A getattr placeholder_picture prop_name N/A difference N/A abs N/A expected_value value N/A N/A difference 2e-06 N/A got %s for %s N/A value prop_name N/A N/A then the {sides} crop is {value} then_the_table_has_2_rows_and_3_columns N/A N/A context N/A N/A N/A table N/A context table_ N/A N/A N/A len N/A table rows 2 N/A N/A N/A len N/A table columns 3 N/A N/A then the table has 2 rows and 3 columns step_then_text_appears_in_title_placeholder N/A N/A context N/A N/A N/A prs N/A Presentation saved_pptx_path N/A title_shape N/A N/A N/A N/A prs slides N/A 0 shapes title N/A title_text N/A N/A N/A N/A N/A N/A title_shape text_frame paragraphs N/A 0 runs N/A 0 text N/A N/A title_text test_text N/A N/A then the text appears in the title placeholder