HTTPretty

Dev tools

testing library

SHOW HN2012

97points
15comments
#225of 1,677 in 2012
Top 14%of 2012 by points

How HN took it

LovedMost comments that take a side are positive

9 positive, 2 neutral or asking, 0 mixed, 0 critical, out of 11 comments about the project. Thread score +0.64.

Idea: 6 for, 0 againstExecution: 2 for, 0 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Makes testing easier and removes dependence on the network.

    From 3 comments
    • 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…
      leftnode on HN
    • 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…
      zer01 on HN
    • Fantastic, I tried to roll my own a few times but never got to this point. Thanks !
      emillon on HN
  • Useful for testing public APIs.

    From 2 comments
    • Oh wow, this could turn out to be very useful. Can use this for automated testing for public APIs.
      xvolter on HN
    • I think we'll put this to use right away.
      cyphrd on HN

Requests

  • Record mode with serialization to JSON/YAML.

    From 1 comment
    • 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/yaml/etc...) plus…
      bryanh on HN
  • Support for wildcards and regexes.

    From 1 comment
    • Please feel free to send pull-requests. There are some cool features to be done; supporting wildcards and/or regexes is one of them
      gfalcao on HN
  • Context manager support.

    From 1 comment
    • 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/yaml/etc...) plus…
      bryanh on HN

Alternatives named

  • Ruby's VCR and Webmock.

    From 2 comments
    • 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.…
      kevin1024 on HN
    • 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…
      gingerlime on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/4763581)