Skip to content

Commit

Permalink
[REF] upgrade_analysis: increase module description column in generat…
Browse files Browse the repository at this point in the history
…ed RST file

to allow for very long module name
  • Loading branch information
StefanRijnhart committed May 23, 2024
1 parent 9289acc commit 9424923
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions upgrade_analysis/models/upgrade_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,6 @@ def analyze(self):
except Exception as e:
_logger.exception("Error generating noupdate changes: %s" % e)
general_log += "ERROR: error when generating noupdate changes: %s\n" % e

try:
self.generate_module_coverage_file(no_changes_modules)
except Exception as e:
Expand Down Expand Up @@ -575,7 +574,7 @@ def generate_module_coverage_file(self, no_changes_modules):
)
elif module in no_changes_modules:
status += "No DB layout changes. "
module_descriptions[module_description.ljust(49, " ")] = status.ljust(
module_descriptions[module_description.ljust(51, " ")] = status.ljust(

Check warning on line 577 in upgrade_analysis/models/upgrade_analysis.py

View check run for this annotation

Codecov / codecov/patch

upgrade_analysis/models/upgrade_analysis.py#L576-L577

Added lines #L576 - L577 were not covered by tests
49, " "
)

Expand Down
8 changes: 4 additions & 4 deletions upgrade_analysis/static/src/module_coverage_template.rst.mako
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ Module coverage ${start_version} -> ${end_version}

.. include:: coverage_legend.rst

+-------------------------------------------------+----------------------+-------------------------------------------------+
| Module | Status + Extra Information |
+=================================================+======================+=================================================+
+---------------------------------------------------+----------------------+-------------------------------------------------+
| Module | Status + Extra Information |
+===================================================+======================+=================================================+
% for module, extra_information in module_descriptions.items():
|${module}| |${extra_information}|
+-------------------------------------------------+----------------------+-------------------------------------------------+
+---------------------------------------------------+----------------------+-------------------------------------------------+
% endfor

0 comments on commit 9424923

Please sign in to comment.