Skip to content

Commit

Permalink
Cleanup: remove pytest and online testing mode (#659)
Browse files Browse the repository at this point in the history
  • Loading branch information
jayaddison committed Oct 20, 2022
1 parent 9b50f53 commit 5501a43
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 28 deletions.
1 change: 0 additions & 1 deletion requirements-dev.txt
Expand Up @@ -4,7 +4,6 @@ coverage>=4.5.1
flake8>=3.8.3
flake8-printf-formatting>=1.1.0
pre-commit>=2.6.0
pytest>=6.1.1
responses>=0.21.0
unittest-parallel>=1.5.0
mypy>=0.971
Expand Down
5 changes: 1 addition & 4 deletions tests/__init__.py
Expand Up @@ -8,7 +8,6 @@
class ScraperTest(unittest.TestCase):

maxDiff = None
online = False
test_file_name: Optional[str] = None
test_file_extension = "testhtml"
scraper_class: Any
Expand All @@ -33,8 +32,6 @@ def setUp(self):
for method, url, path in self.expected_requests:
start_url = start_url or url
with open(path, encoding="utf-8") as f:
response = responses.Response(method, url, body=f.read())
response.passthrough = self.online
rsps.add(response)
rsps.add(method, url, body=f.read())

self.harvester_class = self.scraper_class(url=start_url)
23 changes: 0 additions & 23 deletions tests/conftest.py

This file was deleted.

0 comments on commit 5501a43

Please sign in to comment.