From 7f3a920474055c62e8385a554ea73fa10823dd71 Mon Sep 17 00:00:00 2001 From: Grzegorz Orczykowski Date: Thu, 23 Nov 2023 15:12:11 +0100 Subject: [PATCH] Added a test for rows specified in both possible ways --- tests/test_parameters_rows.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/test_parameters_rows.py b/tests/test_parameters_rows.py index 8a2c62fc..d857d83e 100644 --- a/tests/test_parameters_rows.py +++ b/tests/test_parameters_rows.py @@ -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, ):