Files
ts-pykeepass-wrapper/tests
matmoul 4cb568c326 fix: default bridge and tests to project venv Python
Use .venv/bin/python3 by default, with PYTHON_PATH as an override, and update the setup script and docs to match the new virtualenv-based workflow.
2026-05-10 00:00:56 +02:00
..
2026-05-09 23:50:24 +02:00
2026-05-09 23:50:24 +02:00
2026-05-09 23:50:24 +02:00

Tests

This directory is organized as follows:

  • tests/unit/: fast unit tests with mocks
  • tests/integration/: optional integration tests that may require pykeepass and a Python environment
  • tests/fixtures/: bundled KeePass databases and matching JSON credentials/content files

Conventions

  • Use *.test.ts filenames.
  • Keep unit tests isolated and fast.
  • Prefer mocking the Python bridge in unit tests.
  • Put environment-dependent checks in tests/integration/.
  • Keep fixture-driven expectations aligned with the matching *.kdbx.json file.
  • Integration tests should skip or self-report when prerequisites are missing.