summaryrefslogtreecommitdiffstats
path: root/reporting/utils/reporting_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'reporting/utils/reporting_utils.py')
-rw-r--r--reporting/utils/reporting_utils.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/reporting/utils/reporting_utils.py b/reporting/utils/reporting_utils.py
index 1879fb6..47d67f3 100644
--- a/reporting/utils/reporting_utils.py
+++ b/reporting/utils/reporting_utils.py
@@ -101,7 +101,15 @@ def getApiResults(case, installer, scenario, version):
def getScenarios(case, installer, version):
- case = case.getName()
+ try:
+ case = case.getName()
+ except:
+ # if case is not an object test case, try the string
+ if type(case) == str:
+ case = case
+ else:
+ raise ValueError("Case cannot be evaluated")
+
period = get_config('general.period')
url_base = get_config('testapi.url')