Skip to content

Commit aee045d

Browse files
author
Xavier Grangier
committed
#199 - test for empty title
1 parent 3bf8f5e commit aee045d

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<html>
2+
<head>
3+
<title></title>
4+
</head>
5+
<body>
6+
<div>
7+
<p>
8+
TextNode 1 - The Scala supported IDE is one of the few pain points of developers who want to start using Scala in their Java project. On existing long term project developed by a team its hard to step in and introduce a new language that is not supported by the existing IDE. On way to go about it is to hid the fact that you use Scala from the Java world by using one way dependency injection. Still, if you wish to truly absorb Scala into your existing java environment then you'll soon introduced cross language dependencies.
9+
</p>
10+
</div>
11+
</body>
12+
</html>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"url": "http://exemple.com/test_title_empty.html",
3+
"expected": {
4+
"title": ""
5+
}
6+
}

tests/extractors/title.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,8 @@ def test_title_opengraph(self):
3030
article = self.getArticle()
3131
fields = ['title']
3232
self.runArticleAssertions(article=article, fields=fields)
33+
34+
def test_title_empty(self):
35+
article = self.getArticle()
36+
fields = ['title']
37+
self.runArticleAssertions(article=article, fields=fields)

0 commit comments

Comments
 (0)