Skip to content

Commit

Permalink
Merge pull request #925 from surapuramakhil/hf_brekaing_linkedIn_changes
Browse files Browse the repository at this point in the history
test case fixes
  • Loading branch information
surapuramakhil authored Nov 24, 2024
2 parents ad8635d + 0e8b6f1 commit b624ffd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_aihawk_job_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,11 @@ def test_apply_jobs_with_jobs(mocker, job_manager):
# Simulating two job items
job_elements_list = [job_element_mock, job_element_mock]

# Return the container mock, which itself returns the job elements list
container_mock.find_elements.return_value = job_elements_list
mocker.patch.object(job_manager.driver, 'find_elements',
return_value=[container_mock])

mocker.patch.object(job_manager, 'get_jobs_from_page', return_value=job_elements_list)

job = Job(
title="Title",
company="Company",
Expand Down Expand Up @@ -181,7 +181,7 @@ def test_apply_jobs_with_jobs(mocker, job_manager):
job_manager.apply_jobs()

# Assertions
assert job_manager.driver.find_elements.call_count == 1
assert job_manager.get_jobs_from_page.call_count == 1
# Called for each job element
assert job_manager.job_tile_to_job.call_count == 2
# Called for each job element
Expand Down

0 comments on commit b624ffd

Please sign in to comment.