Skip to content

Commit

Permalink
Merge branch 'pinterestTestPy' of https://github.com/priyankeshh/scra…
Browse files Browse the repository at this point in the history
…pe-up into pr/979
  • Loading branch information
nikhil25803 committed May 17, 2024
2 parents 1d48cae + 4c80c71 commit 3b23acf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/scrape_up/pinterest/pinterest.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,4 @@ def get_pin_details(self, pin_url):
}
except Exception as e:
return None

4 changes: 2 additions & 2 deletions src/test/pinterest_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def test_get_today(self):
self.assertIn("image", topic)

def test_get_photo(self):
url = "https://www.pinterest.com/pin/1234567890/"
url = "https://pin.it/1ZhgQA5AG"
photo = self.pinterest.get_photo(url)
if photo:
self.assertIn("alt", photo)
Expand All @@ -33,7 +33,7 @@ def test_search_pins(self):
self.assertIn("image", pin)

def test_get_pin_details(self):
pin_url = "https://www.pinterest.com/pin/1234567890/"
pin_url = "https://pin.it/1ZhgQA5AG"
details = self.pinterest.get_pin_details(pin_url)
if details:
self.assertIn("title", details)
Expand Down

0 comments on commit 3b23acf

Please sign in to comment.