Skip to content

Commit 5b51fc5

Browse files
authored
Test fixxes and pylint fix (#235)
1 parent 8092a6e commit 5b51fc5

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

atests/Keyboard.robot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Keyboard Type Text By Delay
5353
Should Be Equal ${EXP_VALUE_INPUT_TEXT}${EXP_VALUE_INPUT_TEXT} ${TEXT}
5454
${TOTAL_MS} Subtract Date From Date ${TIME_AFTER} ${TIME_BEFORE} result_format=number
5555
Should Be True ${TOTAL_MS} >= 0.4
56-
Should Be True ${TOTAL_MS} < 0.8
56+
Should Be True ${TOTAL_MS} < 1
5757

5858
Keyboard Types Text By Delay
5959
${TIME_BEFORE} Get Current Date
@@ -64,7 +64,7 @@ Keyboard Types Text By Delay
6464
Should Be Equal ${EXP_VALUE_OVERRIDE_INPUT_TEXT} ${TEXT}
6565
${TOTAL_MS} Subtract Date From Date ${TIME_AFTER} ${TIME_BEFORE} result_format=number
6666
Should Be True ${TOTAL_MS} >= 0.4
67-
Should Be True ${TOTAL_MS} < 1.2
67+
Should Be True ${TOTAL_MS} < 1.4
6868

6969
Keyboard Type Text
7070
Press Key ${KEYBOARD_INPUT_TEXT} ${XPATH_INPUT_FIELD}

src/FlaUILibrary/flaui/module/screenshot.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,14 @@ def create_value_container(element=None,
8282
mode (string): Mode to capture screenshot for Base64 or Image capturing.
8383
directory (string): Directory to capture screenshot.
8484
name (string): Additional name of screenshot. Will be used to capture test name.
85+
suffix (string): Additional suffix of screenshot filetype.
8586
"""
86-
return Screenshot.Container(element=element, enabled=enabled, mode=mode, directory=directory, name=name, suffix=suffix)
87+
return Screenshot.Container(element=element,
88+
enabled=enabled,
89+
mode=mode,
90+
directory=directory,
91+
name=name,
92+
suffix=suffix)
8793

8894
def execute_action(self, action: Action, values: ValueContainer):
8995
# pylint: disable=unnecessary-lambda

src/FlaUILibrary/keywords/screenshot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,11 @@ def set_screenshot_file_suffix(self, suffix='jpg'):
115115
Set file suffix for captured images. If no suffix is set default to jpg.
116116
117117
Arguments:
118-
| Argument | Type | Description |
118+
| Argument | Type | Description |
119119
| suffix | string | File suffix to use - e.g. jpg, png |
120120
121121
Example:
122122
| Set Screenshot File Suffix <SUFFIX> |
123123
"""
124124
module = self._container.create_or_get_module()
125-
module.action(Screenshot.Action.SET_FILE_SUFFIX, Screenshot.create_value_container(suffix=suffix))
125+
module.action(Screenshot.Action.SET_FILE_SUFFIX, Screenshot.create_value_container(suffix=suffix))

src/FlaUILibrary/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION = "4.0.0"
1+
VERSION = "4.0.1"

0 commit comments

Comments
 (0)