From fe74a87df806d7148c2bb50de0678b6fa570466b Mon Sep 17 00:00:00 2001 From: Alon Grinberg Dana Date: Sun, 11 Aug 2024 08:37:42 +0300 Subject: [PATCH] Added Mockter to parser.identify_ess() --- arc/parser.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arc/parser.py b/arc/parser.py index d5a2a73b62..a9a12b7bd7 100644 --- a/arc/parser.py +++ b/arc/parser.py @@ -355,6 +355,10 @@ def identify_ess(path: str) -> Optional[str]: Optional[str]: The ESS. """ software = None + if path.endswith('.yml'): + content = read_yaml_file(path) + if isinstance(content, dict) and 'adapter' in content.keys(): + return content['adapter'] with open(path, 'r') as f: for _ in range(25): line = f.readline()