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

Add test cases for Airdrop class #141

Closed
djeck1432 opened this issue Oct 29, 2024 · 25 comments · Fixed by #145
Closed

Add test cases for Airdrop class #141

djeck1432 opened this issue Oct 29, 2024 · 25 comments · Fixed by #145
Assignees
Labels
good first issue Good for newcomers ODHack9

Comments

@djeck1432
Copy link
Owner

  1. Read guidelines.
  2. Create new file test_zklend_airdrop.py in tests folder
  3. Created positive and negative test cases for this ZkLendAirdrop class
@djeck1432 djeck1432 added good first issue Good for newcomers ODHack9 labels Oct 29, 2024
@martinvibes
Copy link
Contributor

martinvibes commented Oct 29, 2024

can i work on this issue
please kindly assign :)
i like 🍒

@djeck1432
Copy link
Owner Author

Nope:

  1. Tasks for new comers
  2. you didn't read guidelines

@mimisavage
Copy link

I want to take on this issue, can I be assigned?

@martinvibes
Copy link
Contributor

martinvibes commented Oct 29, 2024

i'm new sir @djeck1432 i haven't contributed yet to this repo

@Akshola00
Copy link

hi
can i work on this ?

@josephchimebuka
Copy link

Can I tackle this one?

@djeck1432
Copy link
Owner Author

i'm new sir @djeck1432 i haven't contributed yet
@martinvibes even though, you didn't do 1. read guideline

@mimisavage
Copy link

I want to take on this issue, can I be assigned?

@mimisavage
Copy link

Can I work on this ?

@Ugo-X
Copy link

Ugo-X commented Oct 29, 2024

I'd like to handle this task.

@Yunusabdul38
Copy link

I’d like to work on this.

@mimisavage
Copy link

I want to take on this issue, can I be assigned?

@od-hunter
Copy link
Contributor

od-hunter commented Oct 29, 2024

Can I work on this, I like 🍒

New contributor here

@anonfedora
Copy link

hi, i'm a fullstack blockchain developer and i can handle the issue efficiently. ETA: 8hours

@mimisavage
Copy link

Would love to tackle this !

@binayak9932
Copy link
Contributor

i worked on this project and i am familiar with its codespace i can think i can do this also I like 🍒 very much 😊

@mimisavage
Copy link

Can I work on this ?

@martinvibes
Copy link
Contributor

martinvibes commented Oct 29, 2024

holla @djeck1432 can i tackle this issue
i like 🍒
kindly assign :)

@mimisavage
Copy link

Would love to tackle this !

@suhas-sensei
Copy link

I like 🍒. I'll implement comprehensive test suite focusing on boundary conditions and time-sensitive edge cases for ZkLendAirdrop class, aiming to deliver by Nov 2nd. Have experience writing Pytest fixtures/mocks for blockchain protocols and DeFi airdrop mechanisms.

@mimisavage
Copy link

Would love to tackle this

@aniruddhaaps
Copy link

To solve this, I shall write test_zklend_airdrop.py with some positive and negative test cases on the ZkLendAirdrop class. I focus on get_contract_airdrop and _validate_response to acquire proper API responses along with proper validation behavior.

@mimisavage
Copy link

Let me resolve this

@0xdevcollins
Copy link
Contributor

Is this issue still available?

@Benjtalkshow
Copy link
Contributor

I am a Full Stack Developer with a strong background in blockchain and extensive experience in Next.js, TypeScript, and Python. I’ve made over 31 contributions to over 12 projects in the OnlyDust ecosystem, solving complex issues and delivering efficient, scalable solutions.

To create a new test cases for the ZkLendAirdrop class, I will create a test_zklend_airdrop.py file to include positive and negative test cases. Positive cases will mock valid responses from the REWARD_API_ENDPOINT to verify correct data fetching and validation, ensuring that AirdropResponseModel and AirdropItem instances are properly structured. Negative cases will test invalid contract_id inputs and malformed API responses, confirming that _validate_response handles errors gracefully. I will also ensure all GitHub checks pass for robustness. My ETA is 48hrs from when the task is assigned to me. I like 🍒. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers ODHack9
Projects
None yet
Development

Successfully merging a pull request may close this issue.