[{"data":1,"prerenderedAt":212},["ShallowReactive",2],{"project-4763581":3},{"id":4,"name":5,"line":6,"line_source":7,"title":8,"url":9,"domain":10,"maker":11,"posted_at":12,"year":13,"points":14,"comments":15,"rank_in_year":16,"shown_in_year":17,"top":18,"tier":19,"category":20,"subcategory":21,"format":22,"keywords":23,"reception":28,"sentiment":29,"stance_mix":30,"scored_comments":34,"aspects":35,"strip":39,"post_text":42,"what":43,"said":70,"maker_in_thread":122,"shape":135,"grid":138,"attempts":169,"same_week":174,"maker_shows":123,"maker_hidden":204,"reader_version":205,"card":206},"4763581","HTTPretty","An easy way to mock http requests in python","title","Show HN: HTTPretty, an easy way to mock http requests in python","http:\u002F\u002Ffalcao.it\u002FHTTPretty\u002F","falcao.it","gfalcao",1352479741,2012,97,15,225,1677,14,"notable","dev_tools","testing library","library",[24,25,26,27],"python","mock http","http testing","monkey patch","loved",0.639,{"positive":31,"neutral":32,"mixed":33,"critical":33},9,2,0,11,{"idea":36,"execution":38},{"positive":37,"critical":33},6,{"positive":32,"critical":33},[40,33,40,33,41,40,40,40,40,33,41,40,33,40,40],5,3,null,{"problem":44,"audience":52,"pricing":42,"motivation":42,"time_to_build":42,"stack":60,"openness":69,"stage":69,"team_size":69},{"value":45,"source":46,"evidence":47},"Tests coupled to libraries like Requests and to a live Internet connection.","commenter",[48],{"id":49,"by":50,"text":51},"4764134","leftnode","I'm just getting start with Python and was using the Requests library this morning. I didn't like that my tests were coupled to both the library and an Internet connection…",{"value":53,"source":46,"evidence":54},"Python developers writing tests against HTTP calls.",[55,56],{"id":49,"by":50,"text":51},{"id":57,"by":58,"text":59},"4764462","xvolter","Oh wow, this could turn out to be very useful. Can use this for automated testing for public APIs.",[61],{"value":62,"source":63,"evidence":64},"Python","inferred",[65],{"id":66,"by":67,"text":68},"4764302","zer01","Hot damn, this makes testing easy. Thanks a lot for the module! There's a small typo in your page. \"HTTPretty monkey matches\" should be \"HTTPretty monkey patches\". Great job…","unknown",{"praise":71,"objections":89,"requests":90,"questions":109,"alternatives":110},[72,81],{"value":73,"source":46,"evidence":74},"Makes testing easier and removes dependence on the network.",[75,76,77],{"id":49,"by":50,"text":51},{"id":66,"by":67,"text":68},{"id":78,"by":79,"text":80},"4764791","emillon","Fantastic, I tried to roll my own a few times but never got to this point. Thanks !",{"value":82,"source":46,"evidence":83},"Useful for testing public APIs.",[84,85],{"id":57,"by":58,"text":59},{"id":86,"by":87,"text":88},"4765129","cyphrd","I think we'll put this to use right away.",[],[91,98,105],{"value":92,"source":46,"evidence":93},"Record mode with serialization to JSON\u002FYAML.",[94],{"id":95,"by":96,"text":97},"4765093","bryanh","Wonderful, was considering writing this just the other day. Thank you good sir. One thing that would be really nice, is a record mode and serialization (to JSON\u002Fyaml\u002Fetc...) plus…",{"value":99,"source":100,"evidence":101},"Support for wildcards and regexes.","maker",[102],{"id":103,"by":11,"text":104},"4764960","Please feel free to send pull-requests. There are some cool features to be done; supporting wildcards and\u002For regexes is one of them",{"value":106,"source":46,"evidence":107},"Context manager support.",[108],{"id":95,"by":96,"text":97},[],[111],{"value":112,"source":46,"evidence":113},"Ruby's VCR and Webmock.",[114,118],{"id":115,"by":116,"text":117},"4765413","kevin1024","I'm working on a HTTP testing library based on Ruby's VCR library[1]. I've got it to a pretty basic state where it is somewhat usable. I'm definitely interested in this area.…",{"id":119,"by":120,"text":121},"4766435","gingerlime","Nice. The thing I liked about VCR is that it not only allows you to mock HTTP responses, but actually records the real response the first time you use it. So you don't even…",{"comments":123,"answered":124,"key":125},4,1,[126,129,132],{"id":127,"text":128},"4764958","Thanks great, I'm glad you found it useful",{"id":130,"text":131},"4764937","thanks zer01, I just fixed that.",{"id":133,"text":134},"4765330","bryanh, just saw your pull request, I'm excited to get your contributions :)",{"commenters":34,"max_depth":41,"maker_replies":123,"first_comment_mins":136,"lifespan_hours":137},113,18,[139,141,143,145,147,149,150,151,152,153,155,158,159,161,165],[49,33,40,140,50,33],"project\u002Fpositive\u002Fidea",[127,33,33,142,11,124],"commenter\u002Fneutral\u002Fnone",[66,124,40,144,67,33],"project\u002Fpositive\u002Fexecution",[130,124,33,146,11,124],"maker\u002Fneutral\u002Fdocs",[115,32,41,148,116,33],"project\u002Fneutral\u002Fidea",[119,32,40,140,120,33],[57,41,40,140,58,33],[86,41,40,140,87,33],[95,123,40,140,96,33],[133,123,33,154,11,124],"maker\u002Fpositive\u002Fnone",[156,123,41,157,96,33],"4765543","maker\u002Fneutral\u002Fnone",[78,40,40,144,79,33],[103,40,33,160,11,124],"maker\u002Fneutral\u002Fidea",[162,37,40,163,164,33],"4764141","project\u002Fpositive\u002Fnone","maak",[166,167,40,140,168,33],"4765077",7,"denzil_correa",[170,171],{"id":4,"t":12,"points":14,"comments":15},{"id":172,"t":173,"points":34,"comments":124},"6533708",1381505161,[175,180,185,190,194,199],{"id":176,"name":177,"points":178,"category":179},"4775886","Tranquillity",398,"creative",{"id":181,"name":182,"points":183,"category":184},"4769757","RewindHN",250,"consumer_social",{"id":186,"name":187,"points":188,"category":189},"4767056","garlic.js",212,"languages",{"id":191,"name":192,"points":193,"category":184},"4767794","LaughMatch",159,{"id":195,"name":196,"points":197,"category":198},"4769278","TTS-API",111,"ai",{"id":200,"name":201,"points":202,"category":203},"4786205","HoRNDIS",72,"hardware",false,"v2",{"id":207,"name":5,"line":6,"ai":204,"cat":20,"year":13,"points":14,"comments":15,"rec":28,"s":208,"top":18,"kw":209,"maker":11,"domain":10,"tier":19,"attempts":32,"strip":210,"url":9,"mix":211,"praise":73,"objection":-1,"sub":21},4763581,0.64,[24,25,26,27],"505035555035055",[31,32,33,33],1794036501325]