-
Notifications
You must be signed in to change notification settings - Fork 281
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
Keywords for TRACE and CONNECT HTTP methods #390
Keywords for TRACE and CONNECT HTTP methods #390
Conversation
Limits versions of flask and werkzeug to prevent error when starting http_server for testing
On my machine there are failures on all test_RequestsOnSessionKeywords
|
By the way it's a nice work. Thanks, I should try to understand why GitHub pipelines stop running... :( |
I think approval from a maintainer will make the workflows run? |
I approved but I had issues also with my commits.. I'll check it out if you have some suggestion is welcomed. |
@lucagiove Sorry, it was my mistake. Not sure which unit test I ran on my system before, they should not have passed. I think support for python 2 can be dropped. Robot Framework currently supports >=3.8. |
Yes I agree I should drop some legacy python versions. |
I've made a pull request that removes support for python 2. Yeah compatibility with different Robot Framework versions would be nice. What about different versions of requests? |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #390 +/- ##
==========================================
+ Coverage 83.98% 88.60% +4.62%
==========================================
Files 9 9
Lines 437 465 +28
Branches 102 116 +14
==========================================
+ Hits 367 412 +45
+ Misses 65 51 -14
+ Partials 5 2 -3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@lucagiove I just merged with master after the last two PR's were merged, Thanks! This PR should be good to be merged now. |
Yes you're right. |
Great, now let me have a deeper look at the code. Can I ask why you added support for these methods? You needed to run tests with them? |
Yeah I needed some tests to make sure our rest api did not allow these methods (http 405) |
@lucagiove did you have a chance to check the code? I'm testing with a modified version of requestslibrary now but would like to stick to the stable or pre release version |
I fixed the default values for "allow_redirection" argument. Only HEAD and HEAD on session keywords do not allow redirects by default just like python requests. |
Removes unused library imports Reformats acceptance tests files using robotidy
Fixes some flake8 issues
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ouch now it is a quite big review... 😅
Yeah, most of the changed lines are formatting. Maybe i should have done the changes to the acceptance tests in a separate PR. |
@lucagiove Thanks! |
Adds keywords for CONNECT and TRACE HTTP methods.
Fixes documentation for default value for allow_redirects.
Limits versions for flask and werkzeug to make sure local http server works.
Fixes some unit tests related to optional allow_redirect argument.
Updates documentation.
All unit tests pass
All acceptance tests pass