Merge ~sylvain-pineau/checkbox-ng:fix-1800614 into checkbox-ng:master

Proposed by Sylvain Pineau
Status: Merged
Approved by: Sylvain Pineau
Approved revision: 04e0d22474afa6d2f184c278e340d544ac27f1b1
Merged at revision: 8bdd80eb382f49bef4ecfdfa9a1dfb3b616946d0
Proposed branch: ~sylvain-pineau/checkbox-ng:fix-1800614
Merge into: checkbox-ng:master
Diff against target: 13 lines (+2/-0)
1 file modified
plainbox/impl/exporter/xlsx.py (+2/-0)
Reviewer Review Type Date Requested Status
Sylvain Pineau (community) Approve
Review via email: mp+358013@code.launchpad.net

Description of the change

Fixes the linked bug by adding categories to tp-export

To post a comment you must log in.
Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

Tested with Cert test plans, self-approved

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/plainbox/impl/exporter/xlsx.py b/plainbox/impl/exporter/xlsx.py
2index 0e03f8b..eb4253a 100644
3--- a/plainbox/impl/exporter/xlsx.py
4+++ b/plainbox/impl/exporter/xlsx.py
5@@ -689,6 +689,8 @@ class XLSXSessionStateExporter(SessionStateExporterBase):
6 cat_map = _category_map(state)
7 run_list_ids = [job.id for job in state.run_list]
8 for cat_id in sorted(cat_map, key=lambda x: cat_map[x].casefold()):
9+ self._lineno += 1
10+ self.worksheet4.write_row(self._lineno, 0, [cat_map[cat_id], '', ''], self.format15)
11 for job_id in sorted(state._job_state_map):
12 job_state = state._job_state_map[job_id]
13 if job_id not in run_list_ids:

Subscribers

People subscribed via source and target branches