diff --git a/package-lock.json b/package-lock.json index 6ef24d23..465ef482 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,7 @@ "@axe-core/playwright": "^4.10.0", "@playwright/test": "^1.64.0", "force-graph": "1.51.4", - "impeccable": "4.1.0" + "impeccable": "4.5.2" } }, "node_modules/@axe-core/playwright": { @@ -28,9 +28,9 @@ } }, "node_modules/@impeccable/cli-darwin-arm64": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/@impeccable/cli-darwin-arm64/-/cli-darwin-arm64-0.1.5.tgz", - "integrity": "sha512-RvSrbsvzHsyfVaL693mMiWWLauZXas00F5VrNoaqOUvOm478HJUIUnl77H393F9k9LWZNiNFLwIinRnGJ92naA==", + "version": "0.1.14", + "resolved": "https://registry.npmjs.org/@impeccable/cli-darwin-arm64/-/cli-darwin-arm64-0.1.14.tgz", + "integrity": "sha512-GXT7Av5yaBcmj88xVtkABV9ftwkG8oWszAcIbb+s2C0mQiniskdZrTcqElAZ29iT3FcLMfQtkWlhwd9V41Qvcg==", "cpu": [ "arm64" ], @@ -45,9 +45,9 @@ } }, "node_modules/@impeccable/cli-darwin-x64": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/@impeccable/cli-darwin-x64/-/cli-darwin-x64-0.1.5.tgz", - "integrity": "sha512-wYfhNhVtgosKIjxxWdJ3X/KydASdDIAAdmng8shKUgfiCkY9Tld0psuhVJOdkKoJaRajagp7a2f/tCNN1xdBZA==", + "version": "0.1.14", + "resolved": "https://registry.npmjs.org/@impeccable/cli-darwin-x64/-/cli-darwin-x64-0.1.14.tgz", + "integrity": "sha512-9YKJ6m331oF22EmJGvvatFezFj8Jec4OmL9QPg1emg6D6RpQ5hF2E0xou3tVRjDZoQ3tR9qazDBkyzJoR+wPbw==", "cpu": [ "x64" ], @@ -62,9 +62,9 @@ } }, "node_modules/@impeccable/cli-linux-arm64": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/@impeccable/cli-linux-arm64/-/cli-linux-arm64-0.1.5.tgz", - "integrity": "sha512-gjWJbOa7/wAECkIOac/x6mq43lDGaGwH87/ErsnrFwk/s5hgtlBF0sPePeB30e/lu1VzGMJcXVUEA8EULv4cCg==", + "version": "0.1.14", + "resolved": "https://registry.npmjs.org/@impeccable/cli-linux-arm64/-/cli-linux-arm64-0.1.14.tgz", + "integrity": "sha512-vjd6MelytaV15RK5hUWZ0aZFqiuBmqNO6silgb5g9G3ivplvQLL2pBvjXOayUchH9//1xRu9LxpFiS5ApZboZA==", "cpu": [ "arm64" ], @@ -79,9 +79,9 @@ } }, "node_modules/@impeccable/cli-linux-x64": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/@impeccable/cli-linux-x64/-/cli-linux-x64-0.1.5.tgz", - "integrity": "sha512-JZU7kd7s4DOz9w2gwbbpI1u3YLhrcAUNZg/awjZcQFHJwpizv/MhPVUjHKYuChrPn+Oxlpw7KU8adKY1YrSq8g==", + "version": "0.1.14", + "resolved": "https://registry.npmjs.org/@impeccable/cli-linux-x64/-/cli-linux-x64-0.1.14.tgz", + "integrity": "sha512-f23x5t+pYPDkbt17oMAAcjmTSxexFfNYLZZ4ik/UeGLq1jiPCP6F17IWzBxOzj0C1lAHzOzSlrc7V8+57jMAtA==", "cpu": [ "x64" ], @@ -96,9 +96,9 @@ } }, "node_modules/@impeccable/cli-windows-x64": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/@impeccable/cli-windows-x64/-/cli-windows-x64-0.1.5.tgz", - "integrity": "sha512-kVZFjQIjb84mF2klxTspxE1OilalO/OmYDQnLkCJeDJCQLr6+L6HvbghJ1TChq87uyMu4GQNDPr9VV+h+Z+tCQ==", + "version": "0.1.14", + "resolved": "https://registry.npmjs.org/@impeccable/cli-windows-x64/-/cli-windows-x64-0.1.14.tgz", + "integrity": "sha512-dTM/MSNNf+lBL9ILxuT2fICAD6mfeSdKtCg7ubIDvK5Sapr3n3snkJQkBN8PUjwzyCZAQPZPcV7deXatStYTCA==", "cpu": [ "x64" ], @@ -457,9 +457,9 @@ } }, "node_modules/impeccable": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/impeccable/-/impeccable-4.1.0.tgz", - "integrity": "sha512-hnfdoUK/Xg3qPtL0/5xzh92qKOtmREOZloCmFgnC1nYh3M81ihwCQEL2QWKntYl8qg1OG+jQ7wubR634PgTDIw==", + "version": "4.5.2", + "resolved": "https://registry.npmjs.org/impeccable/-/impeccable-4.5.2.tgz", + "integrity": "sha512-eTePiNIf0OgAXl2XHUcq+Dkd6DmCawj3UQdYKdNvoP4pdk0/0NBx1FqdG+7rDZUnrSNU3E9TodGAJWIST1X70A==", "dev": true, "license": "Apache-2.0", "bin": { @@ -469,11 +469,11 @@ "node": ">=22.18.0" }, "optionalDependencies": { - "@impeccable/cli-darwin-arm64": "0.1.5", - "@impeccable/cli-darwin-x64": "0.1.5", - "@impeccable/cli-linux-arm64": "0.1.5", - "@impeccable/cli-linux-x64": "0.1.5", - "@impeccable/cli-windows-x64": "0.1.5" + "@impeccable/cli-darwin-arm64": "0.1.14", + "@impeccable/cli-darwin-x64": "0.1.14", + "@impeccable/cli-linux-arm64": "0.1.14", + "@impeccable/cli-linux-x64": "0.1.14", + "@impeccable/cli-windows-x64": "0.1.14" } }, "node_modules/index-array-by": { diff --git a/package.json b/package.json index c1009cec..87d23f1a 100644 --- a/package.json +++ b/package.json @@ -1 +1 @@ -{"name":"engraphis-tests","version":"1.0.0","private":true,"description":"Browser accessibility, e2e, vendored bundle provenance, and design-quality dependencies for Engraphis","scripts":{"test:e2e":"playwright test"},"devDependencies":{"@playwright/test":"^1.64.0","@axe-core/playwright":"^4.10.0","force-graph":"1.51.4","impeccable":"4.1.0"}} \ No newline at end of file +{"name":"engraphis-tests","version":"1.0.0","private":true,"description":"Browser accessibility, e2e, vendored bundle provenance, and design-quality dependencies for Engraphis","scripts":{"test:e2e":"playwright test"},"devDependencies":{"@playwright/test":"^1.64.0","@axe-core/playwright":"^4.10.0","force-graph":"1.51.4","impeccable":"4.5.2"}} \ No newline at end of file diff --git a/tests/test_encrypted_store.py b/tests/test_encrypted_store.py index e192907a..4e8145b7 100644 --- a/tests/test_encrypted_store.py +++ b/tests/test_encrypted_store.py @@ -334,4 +334,3 @@ def test_create_memory_engine_honors_db_key_from_env(monkeypatch, tmp_path): eng.close() with pytest.raises(sqlite3.DatabaseError): sqlite3.connect(db).execute("SELECT * FROM memories").fetchone() - diff --git a/tests/test_hosted_ledger.py b/tests/test_hosted_ledger.py index a28df414..2fe4047f 100644 --- a/tests/test_hosted_ledger.py +++ b/tests/test_hosted_ledger.py @@ -314,9 +314,10 @@ def swap_on_open(raw_path, flags, mode=0o777): swapped = True return original_open(raw_path, flags, mode) - monkeypatch.setattr(private_state_module.os, "open", swap_on_open) - with pytest.raises(HostedLedgerError, match="unsafe"): - PrivateHostedLedger(path, _binding(), repo_root=repo) + with monkeypatch.context() as patch: + patch.setattr(private_state_module.os, "open", swap_on_open) + with pytest.raises(HostedLedgerError, match="unsafe"): + PrivateHostedLedger(path, _binding(), repo_root=repo) assert swapped is True @@ -347,6 +348,7 @@ def reparse_lstat(raw_path): return ReparseStat(result) return result - monkeypatch.setattr(private_state_module.os, "lstat", reparse_lstat) - with pytest.raises(HostedLedgerError, match="unsafe"): - PrivateHostedLedger(path, _binding(), repo_root=repo) + with monkeypatch.context() as patch: + patch.setattr(private_state_module.os, "lstat", reparse_lstat) + with pytest.raises(HostedLedgerError, match="unsafe"): + PrivateHostedLedger(path, _binding(), repo_root=repo)