Skip to content

Commit

Permalink
Merge pull request #16 from cloudblue/hotfix/LITE-17919_missing_xlsxr…
Browse files Browse the repository at this point in the history
…ender_kwarg

LITE-17919: hotfix missing xlsxrender kwarg
  • Loading branch information
ffaraoneim authored Mar 25, 2021
2 parents c1483bf + 5ea18de commit 104c929
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 104c929

Please sign in to comment.