Repository navigation
Add TCC.db schema fixture tests; report write failures correctly - #83
Merged
Merged
Conversation
Tests - tests/fixtures/<digest>.sql: TCC.db schemas copied verbatim from real Macs (schema only, no rows), starting with f773496775 from macOS 26.6.2. - tests/fixtures/harvest.sh: produces a fixture from a Mac's user or system TCC.db using only built-in tools. - tests/test_tccutil.py: replays each fixture into a temporary database and runs tccutil.py against it as that fixture's macOS version: --digest, insert, list, enable/disable, remove, and failed writes. Supported digests without a fixture are reported as a skipped test. - .github/workflows/tests.yml: runs the tests on Python 3.9 and 3.x. Fix - A failed insert/remove/enable/disable printed "readonly database ... disable SIP" for any OperationalError and still exited 0, while other sqlite errors crashed with a traceback. Now the SIP hint is shown only for read-only errors, any other database error is reported as-is, and both exit 1. Bump util_version to 1.5.4. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tests
Fix
Bump util_version to 1.5.4.