You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[httpbin](https://httpbin.org/) is an amazing web service for testing HTTP libraries. It has several great endpoints that can test pretty much everything you need in a HTTP library. The only problem is: maybe you don't want to wait for your tests to travel across the Internet and back to make assertions against a remote web service (speed), and maybe you want to work offline (convenience).
6
6
7
-
Enter **pytest-httpbin**. Pytest-httpbin creates a [pytest fixture](http://pytest.org/latest/fixture.html) that is dependency-injected into your tests. It automatically starts up a HTTP server in a separate thread running httpbin and provides your test with the URL in the fixture. Check out this example:
7
+
Enter **pytest-httpbin**. Pytest-httpbin creates a [pytest fixture](https://pytest.org/latest/fixture.html) that is dependency-injected into your tests. It automatically starts up a HTTP server in a separate thread running httpbin and provides your test with the URL in the fixture. Check out this example:
To install from [PyPI](https://pypi.python.org/pypi/pytest-httpbin), all you need to do is this:
99
+
To install from [PyPI](https://pypi.org/project/pytest-httpbin/), all you need to do is this:
100
100
101
101
```bash
102
102
pip install pytest-httpbin
@@ -108,7 +108,7 @@ and your tests executed by pytest all will have access to the `httpbin` and `htt
108
108
109
109
pytest-httpbin supports Python 2.6, 2.7, 3.4-3.6, and pypy. It will automatically install httpbin and flask when you install it from PyPI.
110
110
111
-
[httpbin](https://github.com/kennethreitz/httpbin) itself does not support python 2.6 as of version 0.6.0, when the Flask-common dependency was added. If you need python 2.6 support pin the httpbin version to 0.5.0
111
+
[httpbin](https://github.com/postmanlabs/httpbin) itself does not support python 2.6 as of version 0.6.0, when the Flask-common dependency was added. If you need python 2.6 support pin the httpbin version to 0.5.0
112
112
113
113
## Running the pytest-httpbin test suite
114
114
@@ -171,7 +171,7 @@ tox
171
171
* Add `httpbin_ca_bundle` pytest fixture. With this fixture there is
172
172
no need to specify the bundle on every request, as it will
173
173
automatically set `REQUESTS_CA_BUNDLE` if using
174
-
[requests](http://docs.python-requests.org/). And you don't have to
174
+
[requests](https://docs.python-requests.org/). And you don't have to
175
175
care about where it is located (PR #8). Thanks @t-8ch!
176
176
* 0.0.3: Add a couple test fixtures to make testing old class-based test suites
0 commit comments