Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions cdisc_rules_engine/enums/standard_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,11 @@ class StandardTypes(BaseEnum):
SENDIG_DART = "sendig-dart"
SENDIG_GENETOX = "sendig-genetox"
ADAMIG = "adamig"
ADAM_ADAE = "adam-adae"
ADAM_MD = "adam-md"
ADAM_NCA = "adam-nca"
ADAM_OCCDS = "adam-occds"
ADAM_TTE = "adam-tte"
ADAM_POPPK = "adam-poppk"
TIG = "tig"
USDM = "usdm"
12 changes: 12 additions & 0 deletions tests/unit/test_utilities/test_standard_types_adam.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from cdisc_rules_engine.constants.adam_products import ADAM_PRODUCTS
from cdisc_rules_engine.enums.standard_types import StandardTypes


def test_standard_types_includes_all_adam_products():
"""Every ADaM product handled by normalize_standard_input must be a valid
CLI standard. If it is not, ``-s <product>`` is rejected by the standards
gate in core.py before the engine runs.
"""
supported = set(StandardTypes.values())
missing = [p for p in ADAM_PRODUCTS if p not in supported]
assert not missing, f"ADAM products absent from StandardTypes: {missing}"