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

1""" 

2Strategies for handling orphaned entities and proxy relationships. 

3""" 

4 

5from enum import Enum 

6 

7 

8class OrphanHandlingStrategy(Enum): 

9 """Strategy for handling orphaned entities.""" 

10 

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) 

14 

15 

16class ProxyHandlingStrategy(Enum): 

17 """Strategy for handling proxy entities.""" 

18 

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)