Skip to content

Refactor for better testing - #1

Merged
va1ha11a merged 13 commits into
mainfrom
refactor/testing
Feb 26, 2026
Merged

Refactor for better testing#1
va1ha11a merged 13 commits into
mainfrom
refactor/testing

Conversation

@va1ha11a

Copy link
Copy Markdown
Contributor

Summary

  • Extracted core functions from __main__.py into separate module (sync.py)
  • Added CLI layer (cli.py) following typical pattern
  • Added comprehensive test suite:
    • Unit tests for each extracted function
    • Integration tests for sync() function
    • Integration tests for CLI

Changes

  • Split code into sync.py (core logic) and cli.py (Click interface)
  • Tests now use tempfile.TemporaryDirectory natively
  • 22 tests covering unit and integration scenarios

@va1ha11a
va1ha11a merged commit 3207a00 into main Feb 26, 2026
10 checks passed
@va1ha11a
va1ha11a deleted the refactor/testing branch February 26, 2026 03:39
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.

1 participant