Skip to content

Commit

Permalink
fix(scrapers.tests): set test_site.method to GET
Browse files Browse the repository at this point in the history
  • Loading branch information
grossir committed Aug 13, 2024
1 parent 2294515 commit 0255163
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cl/scrapers/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,7 @@ def setUp(self):
self.mock_response.content = b"not empty"
self.mock_response.headers = {"Content-Type": "application/pdf"}
self.site = test_opinion_scraper.Site()
self.site.method = "GET"

@mock.patch("requests.Session.get")
def test_unexpected_content_type(self, mock_get):
Expand Down

0 comments on commit 0255163

Please sign in to comment.