mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-26 01:26:00 +03:00
[PR #1746] [MERGED] Fix CLI tests to use subprocess and remove mocks #1496
Labels
No labels
expected: maybe someday
expected: next release
expected: release after next
expected: unlikely unless contributed
good first ticket
help wanted
pull-request
scope: all users
scope: windows users
size: easy
size: hard
size: medium
size: medium
status: backlog
status: blocked
status: done
status: idea-phase
status: needs followup
status: wip
status: wontfix
touches: API/CLI/Spec
touches: configuration
touches: data/schema/architecture
touches: dependencies/packaging
touches: docs
touches: js
touches: views/replayers/html/css
why: correctness
why: functionality
why: performance
why: security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ArchiveBox#1496
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ArchiveBox/ArchiveBox/pull/1746
Author: @pirate
Created: 12/31/2025
Status: ✅ Merged
Merged: 12/31/2025
Merged by: @pirate
Base:
dev← Head:claude/fix-cli-tests-macdO📝 Commits (1)
b87bbbbFix CLI tests to use subprocess and remove mocks📊 Changes
6 files changed (+208 additions, -269 deletions)
View changed files
📝
archivebox/cli/tests_piping.py(+2 -30)📝
archivebox/tests/conftest.py(+65 -98)📝
archivebox/tests/test_cli_archiveresult.py(+38 -38)📝
archivebox/tests/test_cli_crawl.py(+36 -36)📝
archivebox/tests/test_cli_run.py(+27 -27)📝
archivebox/tests/test_cli_snapshot.py(+40 -40)📄 Description
Summary
Related issues
Changes these areas
Summary by cubic
Converted CLI tests to run the real ArchiveBox CLI via subprocess with an isolated DATA_DIR, removing mock-based tests and the cli_env fixture. This ensures tests exercise real code paths and improves reliability.
Written for commit
b87bbbbecb. Summary will update on new commits.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
NOT NULL constraint failed: core_snapshot.created_by_id#2391NOT NULL constraint failed: core_snapshot.created_by_id#3902