Skip to content

Save last backup date and improve code structure#32

Merged
Cyber-Syntax merged 7 commits intomainfrom
Cyber-Syntax/issue30
Sep 13, 2025
Merged

Save last backup date and improve code structure#32
Cyber-Syntax merged 7 commits intomainfrom
Cyber-Syntax/issue30

Conversation

@Cyber-Syntax
Copy link
Copy Markdown
Owner

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

- 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.
@Cyber-Syntax Cyber-Syntax merged commit 377ba08 into main Sep 13, 2025
@github-project-automation github-project-automation Bot moved this from Ready to Done in AutoTarCompress Sep 13, 2025
@Cyber-Syntax Cyber-Syntax deleted the Cyber-Syntax/issue30 branch September 13, 2025 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

🚀 feat: save last backup date time

1 participant