Skip to content

Commit

Permalink
LITE-17919: hotfix missing xlsxrender kwarg
Browse files Browse the repository at this point in the history
  • Loading branch information
jpdolz committed Mar 25, 2021
1 parent c1483bf commit 5ea18de
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion connect/reports/renderers/xlsx.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

@register('xlsx')
class XLSXRenderer(BaseRenderer):
def render(self, data, output_file, start_time):
def render(self, data, output_file, start_time=None):
self.start_time = start_time or datetime.now(tz=pytz.utc)
return self.generate_report(data, output_file)

Expand Down
8 changes: 8 additions & 0 deletions tests/reports/test_constants.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Copyright © 2021 CloudBlue. All rights reserved.

from connect.reports.constants import CLI_ENV, REPORTS_ENV


def test_constants():
assert 'CLI Tool' == CLI_ENV
assert 'Connect Reports' == REPORTS_ENV

0 comments on commit 5ea18de

Please sign in to comment.