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 gfg files #1020

Merged
merged 5 commits into from
May 21, 2024
Merged

Test gfg files #1020

merged 5 commits into from
May 21, 2024

Conversation

kart2004
Copy link

Description

The provided test file geeksforgeeks_test.py is designed to test the get_profile method of the Geeksforgeeks class. The get_profile method is expected to return user profile data in JSON format by scraping the GeeksforGeeks website.
The code creates an instance of the Geeksforgeeks class with a test user ID (nikhil25803).
We then check if the keys in the response from get_profile match the expected keys using assertEqual.
Added an additional check to ensure the nested score dictionary contains the expected keys: overall_coding_score and monthly_coding_score.

Resolves: #960

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

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 7813401 into Clueless-Community:main May 21, 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 GFG module.
2 participants