From f4d8e4967157575b737f9f29eb89611aeed838cc Mon Sep 17 00:00:00 2001 From: Marcos Dominguez Date: Mon, 17 Jun 2024 15:09:36 +0200 Subject: [PATCH] Add hasSolvers() to Model.py --- test/end2end/scripts/python/Model.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/end2end/scripts/python/Model.py b/test/end2end/scripts/python/Model.py index ce0a99db8..337b797ea 100644 --- a/test/end2end/scripts/python/Model.py +++ b/test/end2end/scripts/python/Model.py @@ -116,6 +116,10 @@ def __init__(self, filename, expsolution, tags, otherFiles=None, self._name = overrideName if overrideName else filename.stem self._description = description + def hasSolvers(self): + return (self._description is not None) and \ + ("solvers" in self._description) + def getSolvers(self): return self._description["solvers"]