Skip to content

Commit 846d69a

Browse files
Bump httpx from 0.23.3 to 0.24.0 (#473)
* Bump httpx from 0.23.3 to 0.24.0 Bumps [httpx](https://github.com/encode/httpx) from 0.23.3 to 0.24.0. - [Release notes](https://github.com/encode/httpx/releases) - [Changelog](https://github.com/encode/httpx/blob/master/CHANGELOG.md) - [Commits](encode/httpx@0.23.3...0.24.0) --- updated-dependencies: - dependency-name: httpx dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Fix log record pick --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Mathieu Leplatre <[email protected]>
1 parent 8ea317a commit 846d69a

File tree

3 files changed

+10
-29
lines changed

3 files changed

+10
-29
lines changed

poetry.lock

Lines changed: 7 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ yamllint = "^1.30.0"
3434
pytest-dotenv = "^0.5.2"
3535
types-requests = "^2.28.11"
3636
responses = "^0.23.1"
37-
httpx = "^0.23.3"
37+
httpx = "^0.24.0"
3838

3939
[build-system]
4040
requires = ["poetry-core>=1.0.0"]

tests/unit/test_app.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@ def test_request_summary_is_logged(caplog):
2020
},
2121
)
2222

23-
summary = caplog.records[-1]
23+
summary = [r for r in caplog.records if r.name == "request.summary"][0]
2424

25-
assert summary.name == "request.summary"
2625
assert summary.rid == "foo-bar"
2726
assert summary.method == "GET"
2827
assert summary.path == "/"
@@ -35,7 +34,7 @@ def test_request_summary_defaults_user_agent_to_empty_string(caplog):
3534
del anon_client.headers["User-Agent"]
3635
anon_client.get("/")
3736

38-
summary = caplog.records[-1]
37+
summary = [r for r in caplog.records if r.name == "request.summary"][0]
3938

4039
assert summary.agent == ""
4140

0 commit comments

Comments
 (0)