summaryrefslogtreecommitdiffstats
path: root/dovetail
diff options
context:
space:
mode:
Diffstat (limited to 'dovetail')
-rw-r--r--dovetail/report.py2
-rw-r--r--dovetail/tests/unit/test_report.py17
2 files changed, 12 insertions, 7 deletions
diff --git a/dovetail/report.py b/dovetail/report.py
index 9523d38..ed3f942 100644
--- a/dovetail/report.py
+++ b/dovetail/report.py
@@ -336,7 +336,7 @@ class FunctestCrawler(Crawler):
def get_rally_details(self, data):
try:
- t_details = data['details'][0]['details']
+ t_details = data['details']['modules'][0]['details']
tests = len(t_details['success']) + len(t_details['failures'])
details = {
'tests': tests,
diff --git a/dovetail/tests/unit/test_report.py b/dovetail/tests/unit/test_report.py
index 69cde0d..41d70d2 100644
--- a/dovetail/tests/unit/test_report.py
+++ b/dovetail/tests/unit/test_report.py
@@ -741,12 +741,17 @@ class ReportTesting(unittest.TestCase):
'criteria': 'criteria',
'start_date': 'start_date',
'stop_date': 'stop_date',
- 'details': [{
- 'details': {
- 'success': ['subt_a'],
- 'failures': ['subt_b', 'subt_c']
- }
- }]
+ 'details': {
+ 'modules': [
+ {
+ 'details': {
+ 'success': ['subt_a'],
+ 'failures': ['subt_b', 'subt_c']
+ },
+ 'module': 'module'
+ }
+ ]
+ }
}
mock_json.loads.return_value = data_dict