Skip to content

added Should (Not) Contain Any keywords #2120 - #2393

Merged
pekkaklarck merged 4 commits into
robotframework:masterfrom
jimni:feature-#2120-Should-Contain-Any
Oct 5, 2016
Merged

pekkaklarck merged 4 commits into
robotframework:masterfrom
jimni:feature-#2120-Should-Contain-Any

Conversation

@jimni

@jimni jimni commented Jun 5, 2016

Copy link
Copy Markdown
Contributor

No description provided.

| Should Contain Any | ${some list} | item 1 | item 2 |
| Should Contain Any | ${string} | substring | letter | punctuation! |
| Should Contain Any | ${container} | item 1 | ... | item n | msg=Keyword Failed | values=False |
"""

@pekkaklarck pekkaklarck Jun 17, 2016 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This kind of note needed here and also in the "not" version:

New in Robot Framework 3.0.1.

@pekkaklarck

Copy link
Copy Markdown
Member

Looks very good. I added some line notes about things I think should still be looked at. In addition to that, please add yourself to AUTHORS.txt file.

@pekkaklarck

Copy link
Copy Markdown
Member

@jimni

jimni commented Jun 27, 2016

Copy link
Copy Markdown
Contributor Author

Thank you very much for your feedback. I will have time later this week to look into all your comments and modify my fix accordingly. I hope such delay is acceptable for this issue.

@pekkaklarck

Copy link
Copy Markdown
Member

No worries. I've been busy with other tasks myself and haven't had time to concentrate on 3.0.1 too much either.

@jimni

jimni commented Jul 1, 2016

Copy link
Copy Markdown
Contributor Author

I believe I have fixed everything you mentioned in the line notes. As per your helper suggestion, I started another issue #2403, please take a look when it's convenient for you.

Is there anything else you would like me to add to the current PR?

@pekkaklarck

Copy link
Copy Markdown
Member

The PR looks very good. I could merge it right away, but it would be a bit better if _get_string_msg was enhanced to allow dropping extra quotes first. Squashing the commits when everything is done would be nice too.

@jimni

jimni commented Jul 4, 2016

Copy link
Copy Markdown
Contributor Author

You want _get_string_msg fix to be in this branch, correct?

@pekkaklarck

Copy link
Copy Markdown
Member

Depends on the changes to _get_string_msg. If you only enhance it to allow dropping quotes, that can be part of this PR. Adding . to the end should be a separate PR because it is totally unrelated to this PR and requires updating so many tests. That . is very low priority anyway.

@jimni

jimni commented Jul 17, 2016

Copy link
Copy Markdown
Contributor Author

Ready to squash once you accepted the changes to _get_string_message.
Please let me know if the code needs anything else or if my fix doesn't comply with the project's coding practice.

@jimni

jimni commented Jul 24, 2016

Copy link
Copy Markdown
Contributor Author

Will be mostly unable to contribute for the next couple weeks, sorry for the possible inconvenience.

@pekkaklarck

Copy link
Copy Markdown
Member

Been busy with holidays, house moves,and lot of training courses, but now back working with RF 3.0.1. This PR seems to be in a really good shape and ready to be merged. The only issue I saw is that the error message when there are no *items is likely not too good. I'll check how it looks in practice and possibly improve it myself.

@pekkaklarck
pekkaklarck merged commit d552122 into robotframework:master Oct 5, 2016
@jimni

jimni commented Oct 5, 2016

Copy link
Copy Markdown
Contributor Author

Thanks a lot for all your input. It's been a pleasure working on this fix with you.

@jimni
jimni deleted the feature-#2120-Should-Contain-Any branch October 5, 2016 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants