File size: 263 Bytes
d459b8e
fd65885
 
 
 
 
 
d459b8e
fd65885
d459b8e
fd65885
1
2
3
4
5
6
7
8
9
10
11
12
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)