Add comprehensive tests for machine/process models, orchestrator, and search backends

This adds new test coverage for previously untested areas:

Machine module (archivebox/machine/tests/):
- Machine, NetworkInterface, Binary, Process model tests
- BinaryMachine and ProcessMachine state machine tests
- JSONL serialization/deserialization tests
- Manager method tests

Workers module (archivebox/workers/tests/):
- PID file utility tests (write, read, cleanup)
- Orchestrator lifecycle and queue management tests
- Worker spawning logic tests
- Idle detection and exit condition tests

Search backends:
- SQLite FTS5 search tests with real indexed content
- Phrase search, stemming, and unicode support
- Ripgrep search tests with archive directory structure
- Environment variable configuration tests

Binary provider plugins:
- pip provider hook tests
- npm provider hook tests with PATH updates
- apt provider hook tests
This commit is contained in:
Claude
2025-12-31 11:33:27 +00:00
parent 7dd2d65770
commit 0cb5f0712d
13 changed files with 2101 additions and 0 deletions

View File

@@ -0,0 +1 @@
"""Tests for the npm binary provider plugin."""