We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82ad64f commit 3603c14Copy full SHA for 3603c14
1 file changed
tests/test_article_only.py
@@ -124,3 +124,13 @@ def test_utf8_kanji(self):
124
sample = load_sample("utf-8-kanji.sample.html")
125
doc = Document(sample)
126
res = doc.summary()
127
+
128
+ def test_author_present(self):
129
+ sample = load_sample("the-hurricane-rubin-carter-denzel-washington.html")
130
+ doc = Document(sample)
131
+ assert 'Alex von Tunzelmann' == doc.author()
132
133
+ def test_author_absent(self):
134
+ sample = load_sample("si-game.sample.html")
135
136
+ assert '[no-author]' == doc.author()
0 commit comments