mirror of
https://github.com/Bunsly/JobSpy.git
synced 2026-03-05 20:14:32 -08:00
- refactor & #41 bug fix
This commit is contained in:
10
src/tests/test_all.py
Normal file
10
src/tests/test_all.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from ..jobspy import scrape_jobs
|
||||
|
||||
|
||||
def test_all():
|
||||
result = scrape_jobs(
|
||||
site_name=["linkedin", "indeed", "zip_recruiter"],
|
||||
search_term="software engineer",
|
||||
results_wanted=5,
|
||||
)
|
||||
assert result is not None and result.errors.empty is True
|
||||
@@ -6,4 +6,4 @@ def test_indeed():
|
||||
site_name="indeed",
|
||||
search_term="software engineer",
|
||||
)
|
||||
assert result is not None
|
||||
assert result is not None and result.errors.empty is True
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from jobspy import scrape_jobs
|
||||
from ..jobspy import scrape_jobs
|
||||
|
||||
|
||||
def test_linkedin():
|
||||
@@ -6,4 +6,4 @@ def test_linkedin():
|
||||
site_name="linkedin",
|
||||
search_term="software engineer",
|
||||
)
|
||||
assert result is not None
|
||||
assert result is not None and result.errors.empty is True
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from jobspy import scrape_jobs
|
||||
from ..jobspy import scrape_jobs
|
||||
|
||||
|
||||
def test_ziprecruiter():
|
||||
@@ -7,4 +7,4 @@ def test_ziprecruiter():
|
||||
search_term="software engineer",
|
||||
)
|
||||
|
||||
assert result is not None
|
||||
assert result is not None and result.errors.empty is True
|
||||
|
||||
Reference in New Issue
Block a user