Skip to content

Commit 97a110e

Browse files
authored
Merge pull request #69 from hugovk/update
Remove old Travis CI config
2 parents 50cdac1 + 0de26d9 commit 97a110e

File tree

2 files changed

+7
-18
lines changed

2 files changed

+7
-18
lines changed

.travis.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# pytest-httpbin
22

3-
[![Build Status](https://travis-ci.org/kevin1024/pytest-httpbin.svg?branch=master)](https://travis-ci.org/kevin1024/pytest-httpbin)
3+
[![Build Status](https://github.com/kevin1024/pytest-httpbin/actions/workflows/main.yaml/badge.svg)](https://github.com/kevin1024/pytest-httpbin/actions/workflows/main.yaml)
44

55
[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).
66

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:
88

99
```python
1010
def test_that_my_library_works_kinda_ok(httpbin):
@@ -93,10 +93,10 @@ HTTPBIN_HTTP_PORT=8080 HTTPBIN_HTTPS_PORT=8443 py.test tests/
9393

9494
## Installation
9595

96-
[![PyPI Version](https://img.shields.io/pypi/v/pytest-httpbin.svg)](https://pypi.python.org/pypi/pytest-httpbin)
97-
[![Supported Versions](https://img.shields.io/pypi/pyversions/pytest-httpbin.svg)](https://pypi.python.org/pypi/pytest-httpbin)
96+
[![PyPI Version](https://img.shields.io/pypi/v/pytest-httpbin.svg)](https://pypi.org/project/pytest-httpbin/)
97+
[![Supported Versions](https://img.shields.io/pypi/pyversions/pytest-httpbin.svg)](https://pypi.org/project/pytest-httpbin/)
9898

99-
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:
100100

101101
```bash
102102
pip install pytest-httpbin
@@ -108,7 +108,7 @@ and your tests executed by pytest all will have access to the `httpbin` and `htt
108108

109109
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.
110110

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
112112

113113
## Running the pytest-httpbin test suite
114114

@@ -171,7 +171,7 @@ tox
171171
* Add `httpbin_ca_bundle` pytest fixture. With this fixture there is
172172
no need to specify the bundle on every request, as it will
173173
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
175175
care about where it is located (PR #8). Thanks @t-8ch!
176176
* 0.0.3: Add a couple test fixtures to make testing old class-based test suites
177177
easier

0 commit comments

Comments
 (0)