Skip to content

test: Borg 1.2 archive_progress JSON sample (#1354)#2475

Open
OsamaGharibElwaly wants to merge 1 commit intoborgbase:masterfrom
OsamaGharibElwaly:issue/1354-borg-12-archive-progress-samples
Open

test: Borg 1.2 archive_progress JSON sample (#1354)#2475
OsamaGharibElwaly wants to merge 1 commit intoborgbase:masterfrom
OsamaGharibElwaly:issue/1354-borg-12-archive-progress-samples

Conversation

@OsamaGharibElwaly
Copy link
Copy Markdown

@OsamaGharibElwaly OsamaGharibElwaly commented Mar 24, 2026

Summary

Adds an NDJSON stderr fixture for Borg 1.2.x-style archive_progress events (including finished), and unit tests that (1) validate every line as JSON and (2) assert the same finished handling used in borg_job.py for progress updates.

Testing

  • uv run pytest tests/unit/test_borg_json_archive_progress.py
    (Not run locally here; please run in your environment.)

Closes #1354

Adds NDJSON fixture with finished flag and unit tests for JSON validity and progress emission logic.

Made-with: Cursor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add new JSON output sample files to tests

1 participant