mirror of
https://github.com/leoncvlt/loconotion.git
synced 2024-08-30 18:12:12 +00:00
13 lines
407 B
Python
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
|