Skip to content

Commit 51816a2

Browse files
author
Alan Christie
committed
feat: Remove traits from decoder and tests
1 parent ef937cd commit 51816a2

File tree

2 files changed

+0
-51
lines changed

2 files changed

+0
-51
lines changed

decoder/decoder.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@
1313
import jsonschema
1414
import yaml
1515

16-
# Supported 'traits'
17-
TRAIT_COMBINE: str = "combine"
18-
ALL_TRAITS: Set[str] = {TRAIT_COMBINE}
19-
2016
# The decoding engine implementations.
2117
# The modules are expected to be called 'decode_<TextEncoding.lower()>'
2218
from . import decode_jinja2_3_0
@@ -364,12 +360,6 @@ def get_image(job_definition: Dict[str, Any]) -> Tuple[str, str]:
364360
return image_name, image_tag
365361

366362

367-
def get_traits(job_definition: Dict[str, Any]) -> List[Dict[str, Any]]:
368-
"""Returns the array of Job traits. Each trait proeprty name can be found
369-
in the module's ALL_TRAITS set."""
370-
return job_definition.get("traits", [])
371-
372-
373363
def decode(
374364
template_text: str,
375365
variable_map: Optional[Dict[str, str]],

tests/test_get_traits.py

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)