Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sHermanGriffiths committed Sep 24, 2024
1 parent 7d44049 commit 9e3888c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/test_end_to_end.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,16 @@ def test_all_blocks_page_to_markdown(tmpdir):
# TODO: Add assertions about audio blocks and video blocks

# the word "caption" is bolded
assert "![Image **caption**](media/All_Blocks_Test_Page-5f1b0813453.jpeg)" in lines
assert (
"![Image"
" **caption**](media/All_Blocks_Test_Page-5f1b0813453c4e56969ba81443163dd3.jpeg)"
in lines
)

# from a file block in the Notion page
assert os.path.exists(tmpdir / "media" / "All_Blocks_Test_Page-5f1b0813453.jpeg")
assert os.path.exists(
tmpdir / "media" / "All_Blocks_Test_Page-5f1b0813453c4e56969ba81443163dd3.jpeg"
)


def test_page_in_database_to_markdown(tmpdir):
Expand Down

0 comments on commit 9e3888c

Please sign in to comment.