Comments (9)
Hi @dubirajara, thank you very much for the feedback! π
The reason is lack of time π
. In theory I believe it would work with PATCH
, cause we use a generic .request
method to call the requests:
https://github.com/camilamaia/scanapi/blob/master/scanapi/requests_maker.py#L38
I did not add it to the doc because it would be better to check if it works properly indeed and also to create tests.
If you want to test it or create a PR for it, let me know. I can help you if you need anything π
from scanapi.
And BTW, thank you for creating the issue! @dubirajara
from scanapi.
Thank you very much @camilamaia , I will do tests and give you feedback.
from scanapi.
checked, not works with PATCH:
ERROR:scanapi.requests_builder:Error to make request . HTTP method not supported: PATCH. Supported methods: ('GET', 'POST', 'PUT', 'DELETE').
I will do more tests and create a PR for it.
BTW, i tested with v0.0.14 versiΓ³n, i had problem to run the command scanapi with actual version, this error:
from scanapi.tree.api_tree import APITree
ModuleNotFoundError: No module named 'scanapi.tree'
thank you.
from scanapi.
First, about the problem running scanapi, I created a issue for it and I will investigate it ASAP: #82
Regarding of the patch method, this message is showing because I added a verification here:
https://github.com/camilamaia/scanapi/blob/master/scanapi/requests_maker.py#L35. I wanted to ensure only tested methods were being used. You can remove this line to check if it works for patch
from scanapi.
@dubirajara ModuleNotFoundError
fixed, please use the version 0.0.17
π
from scanapi.
hi @camilamaia, i tested a lot with this method, but not create tests. PR: #113
I have seen that there are no tests for put, post or delete methods.
Thanks for your work.
from scanapi.
No problem, I can add test for PATCH when I add for the others. Thank you very much for the contribution!
from scanapi.
Closed by #113
from scanapi.
Related Issues (20)
- How do I pass a POST request using Content-Type: application / x-www-form-urlencoded HOT 4
- Fix typos in ```code_evaluator.py``` HOT 1
- Fix typos in ```spec_evaluator.py``` HOT 3
- Cannot import name 'soft_unicode' from 'markupsafe' HOT 2
- There are some option to set verify=False to requests? HOT 10
- Fix pipeline
- Add rich for summary in the console HOT 3
- Report is not printing the test cases
- Update dependencies to current versions HOT 3
- Field Content is not being displayed properly on Chrome HOT 2
- curl generation doesn't take verify: false into account HOT 1
- Poetry Setup job failing in the GitHub workflows
- Update pytest to avoid error when using python 11
- rich 12.1.0 has been yanked
- π codecov removed from pypi breaking installation of dependencies
- Fix tests
- Show path with variables in report, instead of the real values
- Request dependencies
- The help command does not work HOT 3
- Pyyaml fails to install HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scanapi.