Skip to content

Commit

Permalink
Added a test for rows specified in both possible ways
Browse files Browse the repository at this point in the history
  • Loading branch information
grzesiek2010 committed Nov 23, 2023
1 parent bb85dd3 commit 7f3a920
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/test_parameters_rows.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,19 @@ def test_adding_rows_to_the_body_if_set_in_its_own_column(
xml__xpath_match=["/h:html/h:body/x:input[@ref='/data/name' and @rows='7']"],
)

def test_using_the_number_of_rows_specified_in_parameters_if_it_is_set_in_both_its_own_column_and_the_parameters_column(
self,
):
self.assertPyxformXform(
name="data",
md="""
| survey | | | | | |
| | type | name | label | body::rows | parameters |
| | text | name | Name | 7 | rows=8 |
""",
xml__xpath_match=["/h:html/h:body/x:input[@ref='/data/name' and @rows='8']"],
)

def test_adding_rows_to_the_body_if_set_in_parameters(
self,
):
Expand Down

0 comments on commit 7f3a920

Please sign in to comment.