Commit Graph
19 Commits
Author SHA1 Message Date
thePR0M3TH3ANandClaude Opus 5 3395aadd1c style: satisfy the black gate that was failing the Tests workflow
The Tests workflow was red on every OS and Python version for one reason:
`black --check` found 28 unformatted files. Part predates this branch (the
tui_v3 screens, core/api.py, core/index0.py); part is mine from this session.

Formatting only — verified rather than assumed, because a formatter touching
363 files is exactly where an unnoticed behaviour change would hide:

  - 1223 Python tests pass, unchanged
  - regenerating the fixtures after reformatting the generator produces
    byte-identical output, so no hashed value moved
  - differential fuzz: no divergences

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01Vtx94nXDmNgXEeThUZP4QN
2026-08-19 12:22:19 -04:00
thePR0M3TH3ANandClaude Fable 5 b885573315 fix: make the test-profile generator hermetic and re-runnable
test_profile_init_integration failed on any machine with a generated test
profile already present. Two causes, both real bugs rather than test noise:

- scripts/generate_test_profile.py mutated constants.APP_DIR at import time
  to append "tests". The value was captured when constants was first
  imported -- long before a test can monkeypatch Path.home -- so the script
  read the developer's real ~/.seedpass/tests, and a reload appended another
  "tests" segment. The mutation also leaked into every other importer of
  constants in the same process. The tests directory is now derived per call
  from constants.APP_DIR instead.

- initialize_profile assumed add_fingerprint returns None for an existing
  profile, which is what its docstring still promises; it actually raises
  ValueError. Re-running the generator against an existing profile therefore
  crashed. It now treats "already exists" as the ordinary case.

test_profile_init_integration also repoints constants.APP_DIR so it no
longer depends on the developer's home directory, and
test_generate_test_profile asserts against the derived tests directory
rather than the mutated global.

Verified hermetic: the test passes repeatedly and touches nothing under the
real ~/.seedpass. Full Python suite: 1178 passed, 16 skipped, 0 failed.

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-08-14 21:16:24 -04:00
thePR0M3TH3AN 505cf1a950 feat: track nostr account index per seed 2025-08-20 22:15:35 -04:00
thePR0M3TH3AN 5423c41b06 Include fingerprint salt in password key derivation 2025-08-03 09:37:59 -04:00
thePR0M3TH3AN c23b2e4913 Refactor password manager modules 2025-07-17 19:21:10 -04:00
thePR0M3TH3AN 1c2bb84e75 Update test profile generator with new entry types 2025-07-14 09:54:00 -04:00
thePR0M3TH3AN 11d78a98c9 docs: clarify test profile location 2025-07-13 20:47:26 -04:00
thePR0M3TH3AN 79488b4373 Fix KDF iteration config in test profile script 2025-07-13 18:58:59 -04:00
thePR0M3TH3AN 80c67905ae Allow passing ConfigManager to NostrClient 2025-07-13 15:57:31 -04:00
thePR0M3TH3AN c2f6971b86 Isolate test profiles 2025-07-06 18:57:18 -04:00
thePR0M3TH3AN 174eb3bcca Ensure generate_test_profile creates app dir 2025-07-06 18:32:19 -04:00
thePR0M3TH3AN ccbaedefa0 Improve test profile persistence 2025-07-06 18:22:50 -04:00
thePR0M3TH3AN f85968afa9 Improve test profile script 2025-07-06 17:46:42 -04:00
thePR0M3TH3AN 527fd95a59 Ensure seed file reused 2025-07-06 17:16:03 -04:00
thePR0M3TH3AN 57e7cf3004 Verify Nostr snapshot retrieval 2025-07-06 16:56:54 -04:00
thePR0M3TH3AN 27cd82ba64 Fix test profile sync fingerprint 2025-07-06 16:34:00 -04:00
thePR0M3TH3AN 1e8e418890 Sync test profile data to nostr 2025-07-06 16:23:01 -04:00
thePR0M3TH3AN 7c1a929e1c fix import path in test profile generator 2025-07-06 15:45:44 -04:00
thePR0M3TH3AN 437a2aa5aa Add script to generate sample SeedPass profile 2025-07-06 15:31:14 -04:00