Skip to content

Commit

Permalink
test: Added unit test and updated supported_publishers.md
Browse files Browse the repository at this point in the history
  • Loading branch information
BorisKalika committed Apr 22, 2024
1 parent cff75bc commit a48c8da
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/supported_publishers.md
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,21 @@
<td>&#160;</td>
<td>&#160;</td>
</tr>
<tr>
<td>
<code>TheSun</code>
</td>
<td>
<div>The Sun</div>
</td>
<td>
<a href="https://www.thesun.co.uk/">
<span>www.thesun.co.uk</span>
</a>
</td>
<td>&#160;</td>
<td>&#160;</td>
</tr>
<tr>
<td>
<code>TheTelegraph</code>
Expand Down
49 changes: 49 additions & 0 deletions tests/resources/parser/test_data/uk/TheSun.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"V1": {
"authors": [
"Tanyel Mustafa"
],
"body": {
"summary": [],
"sections": [
{
"headline": [],
"paragraphs": [
"REBECCA Cooke is the childhood sweetheart of England footballer Phil Foden.",
"And the couple have announced some great news with the pair expecting a new addition to the family.",
"Rebecca Cooke is the long-term partner of Manchester City midfielder Phil Foden.",
"Rebecca is thought to be 22 years old and the mother of two children with Phil.",
"She tends to keep out the spotlight and has her Instagram account currently set private, though it does seem to suggest that she goes by the nickname Becca.",
"The exact time at which they started dating is unknown, but they have been together since being teenagers.",
"At the age of 18 she became a mother to their son, Ronnie.",
"A fan account of the couple (@beccafodenx) on Instagram shows the two together, along with a closer look at the blonde bombshell.",
"Phil and Rebecca have a son called Ronnie, 4, and a daughter named True, 1.",
"In April 2024, the couple announced they are expecting a third child.",
"Speaking to Manchester City at the time of the birth of his son, Phil said: \"I was there for the birth. I walked out of the room, gave it a little tear and then went back in like nothing happened.",
"\"I’m not one for crying in front of people. I like to be on my own, but I was there in the room, watched it happen and it was a special moment.",
"\"Your life changes.\"",
"He continued, speaking of the things he misses Ronnie doing due to football training: \"There are things you miss when you’re not there because you’ve got an away game.",
"\"I was there when he started crawling, but I think I was in London when he started to walk.",
"\"Now he’s getting about and walking everywhere, so you have to have eyes in the back of your head or he starts running off.",
"\"It’s unfortunate to miss things like that but it’s a sacrifice that he’ll appreciate when he’s older.\""
]
}
]
},
"publishing_date": "2024-04-22 22:04:00+01:00",
"title": "Who is Man City star Phil Foden’s girlfriend Rebecca Cooke and how many children do couple have?...",
"topics": [
"Pep Guardiola",
"Phil Foden",
"Celebrity relationships and break ups",
"EVG",
"Instagram",
"Manchester City transfer news",
"Pregnancy and childbirth",
"Manchester",
"England",
"Manchester City",
"Manchester United"
]
}
}
Binary file not shown.
4 changes: 4 additions & 0 deletions tests/resources/parser/test_data/uk/meta.info
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
"url": "https://www.independent.co.uk/sport/football/womens-world-cup-england-news-latest-australia-b2392480.html",
"crawl_date": "2023-08-14 11:24:44.038631"
},
"TheSun_2024_04_22.html.gz": {
"url": "https://www.thesun.co.uk/sport/12603994/phil-foden-girlfriend-rebecca-cooke/",
"crawl_date": "2024-04-22 23:07:31.381326"
},
"TheTelegraph_2023_08_30.html.gz": {
"url": "https://www.telegraph.co.uk/recommended/home/best-heated-clothes-airer/",
"crawl_date": "2023-08-30 17:51:33.803288"
Expand Down

0 comments on commit a48c8da

Please sign in to comment.