Code Monkey home page Code Monkey logo

Comments (9)

camilamaia avatar camilamaia commented on May 27, 2024 1

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.

camilamaia avatar camilamaia commented on May 27, 2024 1

And BTW, thank you for creating the issue! @dubirajara

from scanapi.

dubirajara avatar dubirajara commented on May 27, 2024 1

Thank you very much @camilamaia , I will do tests and give you feedback.

from scanapi.

dubirajara avatar dubirajara commented on May 27, 2024 1

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.

camilamaia avatar camilamaia commented on May 27, 2024 1

@dubirajara

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.

camilamaia avatar camilamaia commented on May 27, 2024 1

@dubirajara ModuleNotFoundError fixed, please use the version 0.0.17 πŸ˜‰

from scanapi.

dubirajara avatar dubirajara commented on May 27, 2024 1

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.

camilamaia avatar camilamaia commented on May 27, 2024 1

No problem, I can add test for PATCH when I add for the others. Thank you very much for the contribution!

from scanapi.

camilamaia avatar camilamaia commented on May 27, 2024

Closed by #113

from scanapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.