Skip to content

Commit

Permalink
Update test_gnews.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bckenstler authored Oct 24, 2023
1 parent 9304b53 commit eccc7b0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_gnews.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ def test_get_news_by_location(self):
self.assertTrue(isinstance(news_articles, list))
self.assertTrue(len(news_articles) > 0)

def test_get_news_by_site(self):
# Test that get_news_by_site returns a non-empty list of news articles for a valid site
site = "cnn.com"
news_articles - self.gnews.get_news_by_site(site)
self.assertTrue(isinstance(news_articles, list))
self.assertTrue(len(news_articles) > 0)

def test_get_full_article(self):
pass
# Test that get_full_article returns a valid article object for a valid URL
Expand Down

0 comments on commit eccc7b0

Please sign in to comment.