You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tooling.apache.org by sb...@apache.org on 2025/07/09 14:20:03 UTC
(tooling-releases-client) branch main updated: Move fixtures into the standard pytest fixtures module
This is an automated email from the ASF dual-hosted git repository.
sbp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-releases-client.git
The following commit(s) were added to refs/heads/main by this push:
new e84e4bd Move fixtures into the standard pytest fixtures module
e84e4bd is described below
commit e84e4bd866b160b552fcf1853029b164c9a6952c
Author: Sean B. Palmer <se...@miscoranda.com>
AuthorDate: Wed Jul 9 15:19:40 2025 +0100
Move fixtures into the standard pytest fixtures module
---
Makefile | 5 +++--
pyproject.toml | 4 ++--
tests/conftest.py | 29 +++++++++++++++++++++++++++++
tests/test_all.py | 9 ---------
uv.lock | 4 ++--
5 files changed, 36 insertions(+), 15 deletions(-)
diff --git a/Makefile b/Makefile
index 0feeb09..ca6c3df 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,10 @@
.PHONY: sync
bump: install
+ @# We install above to ensure that dev stamp is up to date
uv run atr dev stamp
+ rm -f uv.lock
+ uv lock
check:
git add -A
@@ -17,8 +20,6 @@ commit:
git push
install:
- rm -f uv.lock
- uv lock
uv pip install -e .
sync:
diff --git a/pyproject.toml b/pyproject.toml
index 89e45cb..d0eaefa 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project]
name = "apache-trusted-releases"
-version = "0.20250709.1409"
+version = "0.20250709.1419"
description = "ATR CLI and Python API"
readme = "README.md"
requires-python = ">=3.13"
@@ -41,4 +41,4 @@ atr = "atrclient.client:main"
packages = ["src/atrclient"]
[tool.uv]
-exclude-newer = "2025-07-09T14:09:00Z"
+exclude-newer = "2025-07-09T14:19:00Z"
diff --git a/tests/conftest.py b/tests/conftest.py
new file mode 100644
index 0000000..78b38ae
--- /dev/null
+++ b/tests/conftest.py
@@ -0,0 +1,29 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+import pathlib
+
+import pytest
+
+
+@pytest.fixture
+def fixture_config_env(
+ monkeypatch: pytest.MonkeyPatch, tmp_path: pathlib.Path
+) -> pathlib.Path:
+ path = tmp_path / "atr.yaml"
+ monkeypatch.setenv("ATR_CLIENT_CONFIG_PATH", str(path))
+ return path
diff --git a/tests/test_all.py b/tests/test_all.py
index f9121e2..f421b3d 100755
--- a/tests/test_all.py
+++ b/tests/test_all.py
@@ -27,15 +27,6 @@ import aioresponses
import pytest
-@pytest.fixture
-def fixture_config_env(
- monkeypatch: pytest.MonkeyPatch, tmp_path: pathlib.Path
-) -> pathlib.Path:
- path = tmp_path / "atr.yaml"
- monkeypatch.setenv("ATR_CLIENT_CONFIG_PATH", str(path))
- return path
-
-
def test_app_checks_status_non_draft_phase(
capsys: pytest.CaptureFixture[str], fixture_config_env: pathlib.Path
) -> None:
diff --git a/uv.lock b/uv.lock
index e36efba..e09cb20 100644
--- a/uv.lock
+++ b/uv.lock
@@ -2,7 +2,7 @@ version = 1
requires-python = ">=3.13"
[options]
-exclude-newer = "2025-07-09T14:09:00Z"
+exclude-newer = "2025-07-09T14:19:00Z"
[[package]]
name = "aiohappyeyeballs"
@@ -74,7 +74,7 @@ wheels = [
[[package]]
name = "apache-trusted-releases"
-version = "0.20250709.1409"
+version = "0.20250709.1419"
source = { editable = "." }
dependencies = [
{ name = "aiohttp" },
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org