mirror of
https://github.com/rehan-remade/universal-modder.git
synced 2026-11-05 01:37:40 +00:00
[PR #48] [MERGED] test: cover backup diff and restore round trip #80
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
rehan-remade/universal-modder#80
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/rehan-remade/universal-modder/pull/48
Author: @MarteTROLLL
Created: 10/4/2026
Status: ✅ Merged
Merged: 10/5/2026
Merged by: @rehan-remade
Base:
main← Head:test/backup-diff-restore📝 Commits (1)
e43f960test: cover backup diff and restore round trip📊 Changes
1 file changed (+21 additions, -0 deletions)
View changed files
📝
tests/test_um.py(+21 -0)📄 Description
Summary
um backup diffandum backup restorehad no tests (onlycreatewas covered, by the pre-1980 timestamp test). This adds one offline test for the round trip:diffreports a changed, a removed and an added file correctlyrestorewithout--yesexits and leaves the folder untouchedrestore --clean --yesputs back the snapshot contents, deletes the file added since, and keeps a<name>-pre-restoresnapshotTest-only change; no code in
um/is touched.Test plan
uv run --with pytest pytest -q tests→ 29 passed (Windows 11, Python 3.12)🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.