Code Monkey home page Code Monkey logo

Comments (8)

domenkozar avatar domenkozar commented on August 25, 2024

Basically adding correct default to all methods would fix this. With a test case that warning is raised and adding stacklevel param to the warning.

from webtest.

merwok avatar merwok commented on August 25, 2024

I could make a PR if you’re patient with my lack of git-fu.

from webtest.

domenkozar avatar domenkozar commented on August 25, 2024

Sure, how can I help? :)

from webtest.

merwok avatar merwok commented on August 25, 2024

I know how to clone, commit and push, but merging is still infuriatingly confusing to me, so if I use the wrong branch or get an unmergeable PR, I’ll need help :)

from webtest.

domenkozar avatar domenkozar commented on August 25, 2024

Workflow is the following:

  • you fork this repo
  • git clone your fork
  • commit changes
  • push back to your repo
  • on github, click "pull request", review changes and submit it

On Mon, Mar 4, 2013 at 6:40 AM, Éric Araujo [email protected]:

I know how to clone, commit and push, but merging is still infuriatingly
confusing to me, so if I use the wrong branch or get an unmergeable PR,
I’ll need help :)


Reply to this email directly or view it on GitHubhttps://github.com//issues/50#issuecomment-14364792
.

from webtest.

merwok avatar merwok commented on August 25, 2024

Yep, I know the basic flow as I said in my previous message, it’s really the branching model and the synchronization that don’t fit my head yet.

Basically adding correct default to all methods would fix this.

I did that and it does remove the spurious warning for DELETE.

With a test case that warning is raised and adding stacklevel param to the warning.

Problem is that warnings use their own reporting system, so you can’t just use assertRaises. In the stdlib we have special helpers to check that a warning was sent, but there’s nothing to do that in webtest at present.

stacklevel=3 does the right thing (3 = _gen_request → delete method → caller). I wanted to separate the two changes in two commits and then git hated me so I won’t push anything today, but I wanted to confirm the fixes.

from webtest.

kmike avatar kmike commented on August 25, 2024

I think the correct way is to fix the warning issuing logic. Why is checking for if method == 'DELETE' and params: not enough? How is u'' non-empty?

from webtest.

merwok avatar merwok commented on August 25, 2024

Thanks for the fix @noonat ! The stacklevel value is still the old one, I may open another ticket for that.

from webtest.

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.