Coverage for heritrace/utils/strategies.py: 100%
9 statements
« prev ^ index » next coverage.py v7.6.12, created at 2025-04-18 11:10 +0000
« prev ^ index » next coverage.py v7.6.12, created at 2025-04-18 11:10 +0000
1"""
2Strategies for handling orphaned entities and proxy relationships.
3"""
5from enum import Enum
8class OrphanHandlingStrategy(Enum):
9 """Strategy for handling orphaned entities."""
11 DELETE = "delete" # Automatically delete orphaned entities
12 ASK = "ask" # Ask the user before deleting orphaned entities
13 KEEP = "keep" # Keep orphaned entities (do nothing)
16class ProxyHandlingStrategy(Enum):
17 """Strategy for handling proxy entities."""
19 DELETE = "delete" # Automatically delete proxy entities
20 ASK = "ask" # Ask the user before deleting proxy entities
21 KEEP = "keep" # Keep proxy entities (do nothing)