Unknown Members: make policy use an Enum
Closes #60 Note: this changeset also ensures that clean.cleaned.docx is removed up after the pytest is over.
This commit is contained in:
parent
2d9ba81a84
commit
f3cef319b9
4 changed files with 25 additions and 23 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
import os
|
||||
import collections
|
||||
from enum import Enum
|
||||
import importlib
|
||||
from typing import Dict, Optional
|
||||
|
||||
|
@ -62,3 +63,8 @@ def check_dependencies() -> dict:
|
|||
ret[value] = False # pragma: no cover
|
||||
|
||||
return ret
|
||||
|
||||
class UnknownMemberPolicy(Enum):
|
||||
ABORT = 'abort'
|
||||
OMIT = 'omit'
|
||||
KEEP = 'keep'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue