Forgejo-Client Deduplication: Add --dry-mode for Testing #8
Labels
No labels
api
architecture
auth
authentication
blocked
bug
bug
chore
ci/cd
ci/cd
codec-constraints
component:blitz
component:chatter
component:entertainment
component:foodchain
component:forgejo-client
component:gatekeeper
component:mappy
component:monads
component:spiffy
deduplication
dependencies
dependencies
documentation
documentation
enhancement
enhancement
feature
feature
fix
graphics
in-progress
lang:go
lang:python
lang:rust
lang:shell
lang:toml
lang:typescript
performance
priority:critical
priority:high
priority:low
priority:medium
ready
research
resolution
review
security
technical-debt
testing
tracking
tracking
vendor
video-encoding
workgroup
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kade/forgejo-client#8
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?
Forgejo-Client Deduplication: Add --dry-mode for Testing
Overview
Add a --dry-mode flag to the duplicate_detection_alert.py script to enable comprehensive integration testing without requiring actual Forgejo connections. This allows testing all code paths (clean repository, duplicates found, connection errors) using mock data while maintaining CI/CD compatibility for production use.
Implementation Plan
Changes to duplicate_detection_alert.py
New Flag:
Mock Data Scenarios:
Integration Tests
Create comprehensive integration tests for --dry-mode:
Benefits
Files to Modify
scripts/forgejo-client/duplicate_detection_alert.py- Add --dry-mode flag and mock datascripts/forgejo-client/tests/test_duplicate_detection_alert.py- Add --dry-mode integration testsRelated Issues
Migrated from reynard/reynard#1044