JobSpy/tests/test_google.py

13 lines
306 B
Python
Raw Normal View History

2024-10-24 13:19:40 -07:00
from jobspy import scrape_jobs
import pandas as pd
def test_google():
result = scrape_jobs(
site_name="google", search_term="software engineer", results_wanted=5
)
assert (
isinstance(result, pd.DataFrame) and len(result) == 5
), "Result should be a non-empty DataFrame"