-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolve inconsinstency with min_width working as (not existing before…
…) fixed_width (#560) * Add new parameter fixed_width to fix min_width not calculating min width * Add new parameter fixed_width in AlignSettingsSection to fix min_width not calculating min width * Fix lookup creation with min_width
- Loading branch information
Showing
11 changed files
with
247 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Minimal width of the column in AlignVariablesSection and AlignSettingsSection (#558) | ||
------------------------------------------------------------------------------------ | ||
|
||
``AlignVariablesSection`` and ``AlignSettingsSection`` transformers use ``min_width`` parameter. Originally it didn't | ||
work as ``min_width`` but more as ``fixed_width`` parameter. That's why we are now introducing new parameter | ||
(``fixed_width``) that will work same as previous ``min_width``. ``min_width`` is now fixed and is used to configure | ||
minimal width of the aligned column. | ||
|
||
If you are relying on ``min_width`` to set fixed width of the column, rename it to ``fixed_width`` in your | ||
configuration. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
tests/atest/transformers/AlignSettingsSection/expected/test_min_width.robot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
*** Settings *** | ||
# whole line comment that should be ignored | ||
Resource ..${/}resources${/}resource.robot | ||
Library SeleniumLibrary | ||
Library Mylibrary.py | ||
Variables variables.py | ||
Test Timeout 1 min | ||
|
||
# this should be left aligned | ||
Library CustomLibrary WITH NAME name | ||
Library ArgsedLibrary ${1} ${2} ${3} | ||
|
||
Documentation Example using the space separated format. | ||
... and this documentation is multiline | ||
... where this line should go I wonder? | ||
Default Tags default tag 1 default tag 2 default tag 3 default tag 4 default tag 5 | ||
Test Setup Open Application App A | ||
Test Teardown Close Application | ||
|
||
Metadata Version 2.0 | ||
Metadata More Info For more information about *Robot Framework* see http://robotframework.org | ||
Metadata Executed At {HOST} | ||
# this should be left aligned | ||
Test Template | ||
|
||
*** Keywords *** | ||
Keyword | ||
Keyword A | ||
Keyword B |
30 changes: 30 additions & 0 deletions
30
tests/atest/transformers/AlignSettingsSection/expected/test_min_width_50_width.robot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
*** Settings *** | ||
# whole line comment that should be ignored | ||
Resource ..${/}resources${/}resource.robot | ||
Library SeleniumLibrary | ||
Library Mylibrary.py | ||
Variables variables.py | ||
Test Timeout 1 min | ||
|
||
# this should be left aligned | ||
Library CustomLibrary WITH NAME name | ||
Library ArgsedLibrary ${1} ${2} ${3} | ||
|
||
Documentation Example using the space separated format. | ||
... and this documentation is multiline | ||
... where this line should go I wonder? | ||
Default Tags default tag 1 default tag 2 default tag 3 default tag 4 default tag 5 | ||
Test Setup Open Application App A | ||
Test Teardown Close Application | ||
|
||
Metadata Version 2.0 | ||
Metadata More Info For more information about *Robot Framework* see http://robotframework.org | ||
Metadata Executed At {HOST} | ||
# this should be left aligned | ||
Test Template | ||
|
||
*** Keywords *** | ||
Keyword | ||
Keyword A | ||
Keyword B |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
tests/atest/transformers/AlignVariablesSection/expected/tests_min_width.robot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
*** Variables *** | ||
# some comment | ||
|
||
${VARIABLE 1} 10 # comment | ||
@{LIST} a b c d | ||
${LONGER_NAME_THAT_GOES_AND_GOES} longer value that goes and goes | ||
|
||
&{MULTILINE} a=b | ||
... b=c | ||
... d=1 | ||
${invalid} | ||
${invalid_more} | ||
|
||
# should be left aligned | ||
# should be left aligned | ||
${variable} 1 |
16 changes: 16 additions & 0 deletions
16
tests/atest/transformers/AlignVariablesSection/expected/tests_min_width_50_width.robot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
*** Variables *** | ||
# some comment | ||
|
||
${VARIABLE 1} 10 # comment | ||
@{LIST} a b c d | ||
${LONGER_NAME_THAT_GOES_AND_GOES} longer value that goes and goes | ||
|
||
&{MULTILINE} a=b | ||
... b=c | ||
... d=1 | ||
${invalid} | ||
${invalid_more} | ||
|
||
# should be left aligned | ||
# should be left aligned | ||
${variable} 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters