Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Wuzzuf Files #1045

Merged
merged 3 commits into from
May 24, 2024
Merged

Test Wuzzuf Files #1045

merged 3 commits into from
May 24, 2024

Conversation

kart2004
Copy link

Description

The provided test file wuzzuf_test.py is designed to test the filter_jobs and fetch_jobs functions of the Wuzzuf jobs class. We check if the data received is in the right format or not. We also check the filter_jobs function by giving random values and checking the result. We use assert Equal to check if it's the required output or not.

While testing out the created test files, the code ran into an error regarding the def __get_job_company function. So I modified it a bit to make it produce the answer in the right format.

Resolves: #961

Checklist

  • Have you adhered to the repository's defined coding convention rules?
  • Have you updated the 'documentation.md' file with the method/function documentation?
  • Have you sent a message along with the result or response?
  • Have you used the try-catch technique?
  • Has the method/class been added to the documentation (md file)?

Screenshots

Uploading a screenshot illustrating the approach you developed for validation is required.

This was the error encountered with the _get_job_company function:
image

This was the final output when I ran the test file:
image

image


I certify that I have carried out the relevant checks and provided the requisite screenshot for validation by submitting this pull request.

@nikhil25803 nikhil25803 merged commit 1c8c3b2 into Clueless-Community:main May 24, 2024
@nikhil25803
Copy link
Member

Great work @kart2004 !!
Do not forget to

  • Share your contribution on socials and tag Clueless 🫂
  • Give this repository a star ✨
  • Follow Clueless Community on GitHub ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gssoc GSSoC 2024 level2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add test files for Wuzzuf module.
2 participants