@@ -653,6 +653,10 @@ def table_(self, request):
653653
654654class Describe_Row (object ):
655655
656+ def it_knows_its_height (self , height_get_fixture ):
657+ row , expected_height = height_get_fixture
658+ assert row .height == expected_height
659+
656660 def it_knows_its_height_rule (self , height_rule_get_fixture ):
657661 row , expected_rule = height_rule_get_fixture
658662 assert row .height_rule == expected_rule
@@ -686,6 +690,18 @@ def cells_fixture(self, _index_, table_prop_, table_):
686690 table_ .row_cells .return_value = list (expected_cells )
687691 return row , row_idx , expected_cells
688692
693+ @pytest .fixture (params = [
694+ ('w:tr' , None ),
695+ ('w:tr/w:trPr' , None ),
696+ ('w:tr/w:trPr/w:trHeight' , None ),
697+ ('w:tr/w:trPr/w:trHeight{w:val=0}' , 0 ),
698+ ('w:tr/w:trPr/w:trHeight{w:val=1440}' , 914400 ),
699+ ])
700+ def height_get_fixture (self , request ):
701+ tr_cxml , expected_height = request .param
702+ row = _Row (element (tr_cxml ), None )
703+ return row , expected_height
704+
689705 @pytest .fixture (params = [
690706 ('w:tr' , None ),
691707 ('w:tr/w:trPr' , None ),
0 commit comments