Skip to content

Commit 12330c9

Browse files
chore(deps): update dependency pytest to v9 (#1323)
Co-authored-by: JP-Ellis <josh@jpellis.me>
1 parent 188b470 commit 12330c9

File tree

3 files changed

+47
-52
lines changed

3 files changed

+47
-52
lines changed

pact-python-cli/pyproject.toml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ requires-python = ">=3.10"
5252
# Linting and formatting tools use a more narrow specification to ensure
5353
# developper consistency. All other dependencies are as above.
5454
dev = ["ruff==0.14.4", { include-group = "test" }, { include-group = "types" }]
55-
test = ["pytest-cov~=7.0", "pytest~=8.0"]
55+
test = ["pytest-cov~=7.0", "pytest~=9.0"]
5656
types = ["mypy==1.18.2"]
5757

5858
################################################################################
@@ -134,19 +134,17 @@ requires = ["hatch-vcs", "hatchling", "packaging"]
134134
## PyTest Configuration
135135
################################################################################
136136
[tool.pytest]
137+
addopts = [
138+
"--import-mode=importlib",
139+
# Coverage options
140+
"--cov-config=pyproject.toml",
141+
"--cov-report=xml",
142+
"--cov=pact_cli",
143+
]
137144

138-
[tool.pytest.ini_options]
139-
addopts = [
140-
"--import-mode=importlib",
141-
# Coverage options
142-
"--cov-config=pyproject.toml",
143-
"--cov-report=xml",
144-
"--cov=pact_cli",
145-
]
146-
147-
log_date_format = "%H:%M:%S"
148-
log_format = "%(asctime)s.%(msecs)03d [%(levelname)-8s] %(name)s: %(message)s"
149-
log_level = "NOTSET"
145+
log_date_format = "%H:%M:%S"
146+
log_format = "%(asctime)s.%(msecs)03d [%(levelname)-8s] %(name)s: %(message)s"
147+
log_level = "NOTSET"
150148

151149
################################################################################
152150
## Coverage

pact-python-ffi/pyproject.toml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -131,19 +131,17 @@ requires = ["hatch-vcs", "hatchling", "packaging", "cffi"]
131131
## PyTest Configuration
132132
################################################################################
133133
[tool.pytest]
134+
addopts = [
135+
"--import-mode=importlib",
136+
# Coverage options
137+
"--cov-config=pyproject.toml",
138+
"--cov-report=xml",
139+
"--cov=pact_ffi",
140+
]
134141

135-
[tool.pytest.ini_options]
136-
addopts = [
137-
"--import-mode=importlib",
138-
# Coverage options
139-
"--cov-config=pyproject.toml",
140-
"--cov-report=xml",
141-
"--cov=pact_ffi",
142-
]
143-
144-
log_date_format = "%H:%M:%S"
145-
log_format = "%(asctime)s.%(msecs)03d [%(levelname)-8s] %(name)s: %(message)s"
146-
log_level = "NOTSET"
142+
log_date_format = "%H:%M:%S"
143+
log_format = "%(asctime)s.%(msecs)03d [%(levelname)-8s] %(name)s: %(message)s"
144+
log_level = "NOTSET"
147145

148146
################################################################################
149147
## Coverage

pyproject.toml

Lines changed: 26 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -284,36 +284,35 @@ requires = ["hatch-vcs", "hatchling"]
284284
################################################################################
285285
[tool.pytest]
286286

287-
[tool.pytest.ini_options]
288-
addopts = [
289-
"--import-mode=importlib",
290-
# Coverage options
291-
"--cov-config=pyproject.toml",
292-
"--cov-report=xml",
293-
"--cov=pact",
294-
]
295-
asyncio_default_fixture_loop_scope = "session"
296-
filterwarnings = [
297-
"ignore::DeprecationWarning:examples",
298-
"ignore::DeprecationWarning:pact",
299-
"ignore::DeprecationWarning:tests",
300-
]
301-
pythonpath = "."
302-
reruns = 3
287+
addopts = [
288+
"--import-mode=importlib",
289+
# Coverage options
290+
"--cov-config=pyproject.toml",
291+
"--cov-report=xml",
292+
"--cov=pact",
293+
]
294+
asyncio_default_fixture_loop_scope = "session"
295+
filterwarnings = [
296+
"ignore::DeprecationWarning:examples",
297+
"ignore::DeprecationWarning:pact",
298+
"ignore::DeprecationWarning:tests",
299+
]
300+
pythonpath = "."
301+
reruns = 3
303302

304-
log_date_format = "%H:%M:%S"
305-
log_format = "%(asctime)s.%(msecs)03d [%(levelname)-8s] %(name)s: %(message)s"
306-
log_level = "NOTSET"
303+
log_date_format = "%H:%M:%S"
304+
log_format = "%(asctime)s.%(msecs)03d [%(levelname)-8s] %(name)s: %(message)s"
305+
log_level = "NOTSET"
307306

308-
markers = [
309-
# Marker for tests that require a container
310-
"container",
307+
markers = [
308+
# Marker for tests that require a container
309+
"container",
311310

312-
# Markers for the compatibility suite
313-
"consumer",
314-
"message",
315-
"provider",
316-
]
311+
# Markers for the compatibility suite
312+
"consumer",
313+
"message",
314+
"provider",
315+
]
317316

318317
################################################################################
319318
## Coverage

0 commit comments

Comments
 (0)