Skip to content

Commit c64eaf4

Browse files
committed
Add support for latest python and httpx
1 parent f28f9c0 commit c64eaf4

File tree

5 files changed

+12
-5
lines changed

5 files changed

+12
-5
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ python:
33
- "3.6"
44
- "3.7"
55
- "3.8"
6+
- "3.9-dev"
67
install:
78
- pip install -e .[testing]
89
script:

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
9+
## [0.10.0] - 2020-10-06
810
### Added
911
- Document how to assert that no requests were issued.
1012
- Document how to send cookies.
13+
- Explicit support for python 3.9
1114

1215
### Changed
16+
- Requires [`httpx`](https://www.python-httpx.org)==0.16.*
1317
- Update documentation to reflect the latest way of sending bytes using `httpx`. Via `content` parameter instead of `data`.
1418
- Code now follow `black==20.8b1` formatting instead of the git master version.
1519
- Sending a JSON response using `json` parameter will now set the `application/json` content-type header by default.
@@ -115,7 +119,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
115119
### Added
116120
- First release, should be considered as unstable for now as design might change.
117121

118-
[Unreleased]: https://github.com/Colin-b/pytest_httpx/compare/v0.9.0...HEAD
122+
[Unreleased]: https://github.com/Colin-b/pytest_httpx/compare/v0.10.0...HEAD
123+
[0.10.0]: https://github.com/Colin-b/pytest_httpx/compare/v0.9.0...v0.10.0
119124
[0.9.0]: https://github.com/Colin-b/pytest_httpx/compare/v0.8.0...v0.9.0
120125
[0.8.0]: https://github.com/Colin-b/pytest_httpx/compare/v0.7.0...v0.8.0
121126
[0.7.0]: https://github.com/Colin-b/pytest_httpx/compare/v0.6.0...v0.7.0

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<a href="https://travis-ci.com/Colin-b/pytest_httpx"><img alt="Build status" src="https://api.travis-ci.com/Colin-b/pytest_httpx.svg?branch=master"></a>
66
<a href="https://travis-ci.com/Colin-b/pytest_httpx"><img alt="Coverage" src="https://img.shields.io/badge/coverage-100%25-brightgreen"></a>
77
<a href="https://github.com/psf/black"><img alt="Code style: black" src="https://img.shields.io/badge/code%20style-black-000000.svg"></a>
8-
<a href="https://travis-ci.com/Colin-b/pytest_httpx"><img alt="Number of tests" src="https://img.shields.io/badge/tests-123 passed-blue"></a>
8+
<a href="https://travis-ci.com/Colin-b/pytest_httpx"><img alt="Number of tests" src="https://img.shields.io/badge/tests-131 passed-blue"></a>
99
<a href="https://pypi.org/project/pytest-httpx/"><img alt="Number of downloads" src="https://img.shields.io/pypi/dm/pytest_httpx"></a>
1010
</p>
1111

@@ -156,7 +156,7 @@ from pytest_httpx import HTTPXMock
156156

157157

158158
def test_headers_matching(httpx_mock: HTTPXMock):
159-
httpx_mock.add_response(match_headers={'user-agent': 'python-httpx/0.15.4'})
159+
httpx_mock.add_response(match_headers={'user-agent': 'python-httpx/0.16.0'})
160160

161161
with httpx.Client() as client:
162162
response = client.get("http://test_url")

pytest_httpx/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
# Major should be incremented in case there is a breaking change. (eg: 2.5.8 -> 3.0.0)
44
# Minor should be incremented in case there is an enhancement. (eg: 2.5.8 -> 2.6.0)
55
# Patch should be incremented in case there is a bug fix. (eg: 2.5.8 -> 2.5.9)
6-
__version__ = "0.9.0"
6+
__version__ = "0.10.0"

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,15 @@
3030
"Programming Language :: Python :: 3.6",
3131
"Programming Language :: Python :: 3.7",
3232
"Programming Language :: Python :: 3.8",
33+
"Programming Language :: Python :: 3.9",
3334
"Topic :: Software Development :: Build Tools",
3435
"Topic :: Internet :: WWW/HTTP",
3536
"Framework :: Pytest",
3637
],
3738
keywords=["pytest", "testing", "mock", "httpx"],
3839
packages=find_packages(exclude=["tests*"]),
3940
entry_points={"pytest11": ["pytest_httpx = pytest_httpx"]},
40-
install_requires=["httpx==0.15.*", "pytest==6.*"],
41+
install_requires=["httpx==0.16.*", "pytest==6.*"],
4142
extras_require={
4243
"testing": [
4344
# Used to run async test functions

0 commit comments

Comments
 (0)