Skip to content

Commit

Permalink
build(deps-dev): update pytest requirement from ~=7.4 to ~=8.0 (#631)
Browse files Browse the repository at this point in the history
* build(deps-dev): update pytest requirement from ~=7.4 to >=7.4,<9.0

Updates the requirements on [pytest](https://github.com/pytest-dev/pytest) to permit the latest version.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](pytest-dev/pytest@7.4.0...8.0.0)

---
updated-dependencies:
- dependency-name: pytest
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update warning catching tests

* Use pytest 8

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Julia Signell <[email protected]>
  • Loading branch information
dependabot[bot] and jsignell authored Feb 1, 2024
1 parent a03b34b commit 9ab30e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ dev = [
"pytest-console-scripts~=1.4.0",
"pytest-cov~=4.1.0",
"pytest-recording~=0.13",
"pytest~=7.4",
"pytest~=8.0",
"recommonmark~=0.7.1",
"requests-mock~=1.11.0",
"ruff==0.1.15",
Expand Down
5 changes: 3 additions & 2 deletions tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,9 @@ def test_get_collections_without_conformance_fallsback_to_pystac(
# Mock the collection
requests_mock.get(pc_collection_href, status_code=200, json=pc_collection_dict)

with pytest.warns(DoesNotConformTo, match="COLLECTIONS, FEATURES"):
_ = next(api.get_collections())
with pytest.warns(FallbackToPystac):
with pytest.warns(DoesNotConformTo, match="COLLECTIONS, FEATURES"):
_ = next(api.get_collections())

history = requests_mock.request_history
assert len(history) == 2
Expand Down

0 comments on commit 9ab30e9

Please sign in to comment.