loconotion/tests/test_parser.py
2022-02-18 13:46:09 +03:00

13 lines
407 B
Python

import pytest
from loconotion.notionparser import Parser
def test_parse_sample_page():
config={"page": "https://www.notion.so/Loconotion-Example-Page-03c403f4fdc94cc1b315b9469a8950ef"}
args = {"timeout": 10}
parser = Parser(config, args)
parser.processed_pages = {}
parser.parse_page(parser.starting_url, parse_subpages=False)
assert parser.starting_url in parser.processed_pages