Skip to content

Update test suite to match latest Robot and Python versions #73

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions test/atest/argument_spec_invalid.robot
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ Too few arguments when using varargs
Required Defaults And Varargs

Using arguments when only kwargs accepted
[Documentation] FAIL Keyword 'Remote.Kwargs' expected 0 non-keyword arguments, got 4.
[Documentation] FAIL Keyword 'Remote.Kwargs' expected 0 non-named arguments, got 4.
Kwargs normal args are no-no

Too few arguments when kwargs accepted
[Documentation] FAIL Keyword 'Remote.Args And Kwargs' expected 1 to 2 non-keyword arguments, got 0.
[Documentation] FAIL Keyword 'Remote.Args And Kwargs' expected 1 to 2 non-named arguments, got 0.
Args and kwargs

Too many arguments when kwargs accepted
[Documentation] FAIL Keyword 'Remote.Args And Kwargs' expected 1 to 2 non-keyword arguments, got 7.
[Documentation] FAIL Keyword 'Remote.Args And Kwargs' expected 1 to 2 non-named arguments, got 7.
Args and kwargs we do not accept this many args

Missing argument when using kwargs
Expand Down
2 changes: 1 addition & 1 deletion test/atest/argument_types.robot
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ List-like
() []
('Hei', u'\\xe4iti', 63, (), None) ['Hei', u'\\xe4iti', 63, [], '']
set(['hello']) ['hello']
xrange(5) [0, 1, 2, 3, 4]
range(5) [0, 1, 2, 3, 4]

Dictionary
{}
Expand Down
7 changes: 4 additions & 3 deletions test/atest/basic_communication.robot
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ Use multiple times
... LOG 1.1.2 Round 1
... LOG 1.2.2 Round 2
... LOG 1.${COUNT}.2 Round ${COUNT}
: FOR ${i} IN RANGE ${COUNT}
\ Passing
\ Logging Round ${i + 1}
FOR ${i} IN RANGE ${COUNT}
Passing
Logging Round ${i + 1}
END

Private methods should ne ignored
[Documentation] FAIL No keyword with name 'Private Method' found.
Expand Down
2 changes: 1 addition & 1 deletion test/atest/kwargs.robot
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@ Non-string kwargs
Binary kwargs
${tuple} = Evaluate ('\x02',)
${result} = Kwargs a=\x00 b=\x01 c=${tuple}
Should Match ${result} a:\x00, b:\x01, c:[*'\\x02'] (list)
Should be equal ${result} a:\x00, b:\x01, c:[b'\\x02'] (list)
2 changes: 1 addition & 1 deletion test/atest/logging.robot
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Multiple messages with different levels
[Documentation]
... LOG 1:1 INFO Info message
... LOG 1:2 DEBUG Debug message
... LOG 1:3 INFO Second info\n this time with two lines
... LOG 1:3 INFO Second info\nthis time with two lines
... LOG 1:4 INFO Third info
... LOG 1:5 WARN Warning
Multiple Messages With Different Levels
Expand Down
7 changes: 4 additions & 3 deletions test/atest/module.robot
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ Use multiple times
... LOG 1.1.2 Round 1
... LOG 1.2.2 Round 2
... LOG 1.${COUNT}.2 Round ${COUNT}
: FOR ${i} IN RANGE ${COUNT}
\ Passing
\ Logging Round ${i + 1}
FOR ${i} IN RANGE ${COUNT}
Passing
Logging Round ${i + 1}
END

Private methods should ne ignored
[Documentation] FAIL No keyword with name 'Private Method' found.
Expand Down
2 changes: 1 addition & 1 deletion test/atest/returning.robot
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Dictionary with binary keys is not supported
{u'\\x00': 'value'}

Dictionary with binary values
{'0': u'\\x00', '1': b'\\x01'}
{'0': u'\\x00', '1': b'\\xff'}

Dictionary with non-string keys and values
[Documentation] XML-RPC supports only strings as keys so must convert them
Expand Down