Skip to content

Commit 3858a5f

Browse files
committed
bump version to 1.9.5
1 parent af61721 commit 3858a5f

File tree

3 files changed

+18
-7
lines changed

3 files changed

+18
-7
lines changed

conftest.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import fcntl
44
import json
5+
import logging
56
import os
67
import shutil
78
import subprocess
@@ -15,6 +16,8 @@
1516
from abx_plugins.plugins.base.test_utils import parse_jsonl_output, parse_jsonl_records
1617
from abx_plugins.plugins.chrome.tests.chrome_test_helpers import get_lib_dir
1718

19+
logger = logging.getLogger(__name__)
20+
1821

1922
PLUGINS_ROOT = Path(__file__).resolve().parent / "abx_plugins" / "plugins"
2023
CLAUDECODE_INSTALL_HOOK = (
@@ -267,4 +270,8 @@ def require_chrome_runtime():
267270
Binary(name="node", binproviders=[EnvProvider()]).load()
268271
Binary(name="npm", binproviders=[EnvProvider()]).load()
269272
except Exception as exc:
270-
pytest.fail(f"Chrome integration prerequisites unavailable: {exc}")
273+
logger.error("Chrome integration prerequisites unavailable: %s", exc)
274+
pytest.fail(
275+
f"Chrome integration prerequisites unavailable: {exc}",
276+
pytrace=False,
277+
)

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "abx-plugins"
3-
version = "0.10.3"
3+
version = "1.9.5"
44
description = "ArchiveBox-compatible plugin suite (hooks, configs, binaries manifests)"
55
authors = [{name = "Nick Sweeting", email = "pyproject.toml+abx-plugins@archivebox.io"}]
66
requires-python = ">=3.11"
@@ -19,7 +19,7 @@ classifiers = [
1919
"Environment :: Console",
2020
]
2121
dependencies = [
22-
"abx-pkg>=0.7.1",
22+
"abx-pkg>=1.9.5",
2323
"feedparser>=6.0.0",
2424
"pydantic-settings>=2.0.0",
2525
"pyright>=1.1.408",

tests/test_chrome_runtime_fixture.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,20 @@ def fake_load(self: Binary, *args, **kwargs):
2525

2626
def test_require_chrome_runtime_fails_when_binary_resolution_fails(
2727
monkeypatch: pytest.MonkeyPatch,
28+
caplog: pytest.LogCaptureFixture,
2829
):
2930
"""Fixture should fail fast when a required runtime binary cannot be loaded."""
3031

3132
def fake_load(self: Binary, *args, **kwargs):
3233
raise Exception(f"{self.name} missing")
3334

3435
monkeypatch.setattr(Binary, "load", fake_load)
36+
caplog.set_level("ERROR")
3537

36-
with pytest.raises(
37-
Failed,
38-
match="Chrome integration prerequisites unavailable: node missing",
39-
):
38+
with pytest.raises(Failed, match="Chrome integration prerequisites unavailable: node missing") as excinfo:
4039
conftest.require_chrome_runtime.__wrapped__()
40+
41+
assert caplog.messages == [
42+
"Chrome integration prerequisites unavailable: node missing"
43+
]
44+
assert excinfo.value.pytrace is False

0 commit comments

Comments
 (0)