Skip to content
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.

Commit

Permalink
fix(cli): Function signature issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Cobertos committed Oct 27, 2020
1 parent 8927691 commit d52dde9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion md2notion/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def cli(argv):
# Make the new page in Notion.so
uploadPage = page.children.add_new(PageBlock, title=mdFileName)
print(f"Uploading {mdPath} to Notion.so at page {uploadPage.title}...")
upload(mdFile, uploadPage, notionPyRendererCls)
upload(mdFile, uploadPage, None, notionPyRendererCls)


if __name__ == "__main__":
Expand Down
2 changes: 1 addition & 1 deletion tests/test_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,6 @@ def test_cli_html_img_tag(mockClient, upload):

#assert
args0, kwargs0 = upload.call_args
renderer = args0[2]()
renderer = args0[3]()
assert "HTMLSpan" in renderer.render_map
assert "HTMLBlock" in renderer.render_map

0 comments on commit d52dde9

Please sign in to comment.