Save last backup date and improve code structure#32
Merged
Cyber-Syntax merged 7 commits intomainfrom Sep 13, 2025
Merged
Conversation
- Replace password with redacted on logs - Update file delete logic to improve readability - Add better error handling
- Introduced shared pytest fixtures in `conftest.py` for consistent test setup. - Implemented tests for backup info functionality in `test_backup_info.py`, covering saving, error handling, and size formatting. - Added tests for command execution in `test_commands.py`, ensuring proper behavior of backup, cleanup, encrypt, and info commands. - Developed tests for configuration loading and validation in `test_config.py`, including handling of old config formats and invalid JSON. - Created tests for facade pattern implementation in `test_facade.py`, verifying command access and execution. - Implemented security-related tests in `test_security.py`, focusing on context manager functionality and logging. - Added utility tests in `test_utils.py` for size calculation, including handling of permission errors and non-existent directories.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The implementation saves the last backup date and time, enhancing the backup functionality. Refactoring efforts include better naming conventions, improved error handling, and updated method signatures for clarity. Comprehensive tests were added to ensure the reliability of the new features and existing functionality. Additionally, documentation was updated to reflect changes in the project structure and guidelines.
Fixes #30