text-summary-app / test_app.py
stestoni91
Change main function name
d459b8e
raw
history blame
263 Bytes
from app import summarize
import wikipedia
wikipedia.set_lang("it")
import warnings
warnings.filterwarnings("ignore")
def test_summarize():
text = wikipedia.summary('Sardegna', sentences=10)
summary = summarize(text)
assert len(text) > len(summary)