url2markdown/tests/test_download.py

8 lines
237 B
Python
Raw Permalink Normal View History

2020-10-12 14:49:46 +02:00
from newspaper import Article
from url2markdown.downloader import downloader
2020-10-12 14:11:33 +02:00
def test_get_content():
2020-10-12 15:17:21 +02:00
article = downloader('https://www.20min.ch/story/corona-zahlen-auf-einen-blick-803083076953')
2020-10-12 14:49:46 +02:00
assert type(article) == Article