Skip to content

Commit

Permalink
Fixed typo in test api steps
Browse files Browse the repository at this point in the history
  • Loading branch information
RaresCode committed Dec 21, 2023
1 parent 1618e96 commit 9d45132
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def test_scrapers_title(self, setup_tests):
if job_title not in job_titles_peviitor:
missing_job_titles.append(job_title)

print("Step 3: Compare of job titles from scraper response against Peviitor API Response\n")
print("Step 3: Compare job titles from scraper response against Peviitor API Response\n")
# If the missing job list is empty it might mean there are more jobs on peviitor than needed
if missing_job_titles == []:
missing_job_titles_peviitor = []
Expand Down Expand Up @@ -90,7 +90,7 @@ def test_scrapers_city(self, setup_tests):
print("Step 2: Get job cities from the Peviitor API")
job_cities_peviitor = sorted(setup_tests.peviitor_jobs_data[1])

print("Step 3: Compare of job titles from scraper response against Peviitor API Response\n")
print("Step 3: Compare job cities from scraper response against Peviitor API Response\n")
print(f"Expected Results: {job_cities_scraper}\n")
print(f"Actual Results: {job_cities_peviitor}")

Expand All @@ -110,7 +110,7 @@ def test_scrapers_country(self, setup_tests):
print("Step 2: Get job countries from the Peviitor API")
job_countries_peviitor = sorted(setup_tests.peviitor_jobs_data[2])

print("Step 3: Compare of job countries from scraper response against Peviitor API Response\n")
print("Step 3: Compare job countries from scraper response against Peviitor API Response\n")
print(f"Expected Results: {job_countries_scraper}\n")
print(f"Actual Results: {job_countries_peviitor}")
if job_countries_scraper != job_countries_peviitor:
Expand All @@ -135,7 +135,7 @@ def test_scrapers_link(self, setup_tests):
if job_link not in job_links_peviitor:
missing_job_links.append(job_link)

print("Step 3: Compare of job links from scraper response against Peviitor API Response\n")
print("Step 3: Compare job links from scraper response against Peviitor API Response\n")
print(f"Expected Results: {job_links_scraper}\n")
print(f"Actual Results: {job_links_peviitor}")
if missing_job_links == []:
Expand Down

0 comments on commit 9d45132

Please sign in to comment.