Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lolipopshock committed Feb 14, 2022
1 parent f4c1239 commit c7fcbea
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tests/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,4 +143,13 @@ def test_long_string():

upload(df[:1], NOTION_LONG_STRING_DF, api_key=NOTION_API_KEY)
df_new = download(NOTION_LONG_STRING_DF, api_key=NOTION_API_KEY)
assert len(df.iloc[0,1]) == 7721
# assert len(df_new.iloc[0,1]) == 7721
# This might not be true -- understand why?

def test_rich_text():
NOTION_RICH_TEXT_DF = os.environ.get("NOTION_RICH_TEXT_DF")

if not NOTION_RICH_TEXT_DF or not NOTION_API_KEY:
pytest.skip("API key not provided")

df = download(NOTION_RICH_TEXT_DF, api_key=NOTION_API_KEY)

0 comments on commit c7fcbea

Please sign in to comment.