Skip to content

Commit

Permalink
Fix host classmethod for mindmegette.hu (hhursev#749)
Browse files Browse the repository at this point in the history
  • Loading branch information
maraid authored Mar 23, 2023
1 parent 461c740 commit 41ee615
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion recipe_scrapers/mindmegette.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
class Mindmegette(AbstractScraper):
@classmethod
def host(cls):
return "www.mindmegette.hu"
return "mindmegette.hu"

def title(self):
return self.soup.find("h1", {"class": "title"}).get_text()
Expand Down
4 changes: 2 additions & 2 deletions tests/test_mindmegette.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class TestMindmegetteScraper(ScraperTest):
scraper_class = Mindmegette

def test_host(self):
self.assertEqual("www.mindmegette.hu", self.harvester_class.host())
self.assertEqual("mindmegette.hu", self.harvester_class.host())

def test_language(self):
self.assertEqual("hu", self.harvester_class.language())
Expand Down Expand Up @@ -58,6 +58,6 @@ def test_yields(self):

def test_image(self):
self.assertEqual(
"https://www.mindmegette.hu/images/283/O/tepsis-ceklas.jpg",
"https://mindmegette.hu/images/283/O/tepsis-ceklas.jpg",
self.harvester_class.image(),
)

0 comments on commit 41ee615

Please sign in to comment.