stakwork / sphinx-tribes

Backend for sphinx tribes and bounties. The bounty platform pays out in bitcoin. Sign up with Sphinx Chat, complete a bounty, and earn bitcoin! Go to our website for available bounties.
https://community.sphinx.chat/bounties
33 stars 60 forks source link

[Unit Test][Golang] CreateOrEditBounty #1129

Closed kevkevinpal closed 10 months ago

kevkevinpal commented 10 months ago

Task:

1). create a new file in /handlers/bounty_test.go you can use /handlers/auth_test.go as a template 2). create unit test for golang function CreateOrEditBounty https://github.com/stakwork/sphinx-tribes/blob/master/handlers/bounty.go#L121 3). you may need to edit /db/db_mock.go to setup mock responses for CreateOrEditBounty

Acceptance Criteria:

golang code coverage is increased and CreateOrEditBounty handler now has coverage

anish-yadav commented 10 months ago

can i attempt this? /attempt

ecurrencyhodler commented 10 months ago

Yes absolutely. This is yours.

Let me know if you didn't get the sphinx code I sent you.

ecurrencyhodler commented 10 months ago

Okay this bounty has also been assigned to you: https://community.sphinx.chat/bounty/931

Do you mind me asking how you heard about our project and bounties platform?

anish-yadav commented 10 months ago

Okay this bounty has also been assigned to you: https://community.sphinx.chat/bounty/931

Do you mind me asking how you heard about our project and bounties platform?

Just heard from a friend so thought to try this out.

ecurrencyhodler commented 10 months ago

Awesome! We're glad to have you. :)

anish-yadav commented 10 months ago

hi @ecurrencyhodler can you please assign the bounty to this profile if possible. Eric Wright 031a8f3eb9a601366074c829e94d10f291a91f2ea9d8a414c079c246d3dc351b4d:03a6ea2d9ead2120b12bd66292bb4a302c756983dc45dcb2b364b461c66fd53bcb:1099522637825

I lost my account and needed to create another.

ecurrencyhodler commented 10 months ago

Of course: https://people-test.sphinx.chat/bounty/931

ecurrencyhodler commented 10 months ago

So @anish-yadav are you also @wright-eric on github?

wright-eric commented 10 months ago

yeah @ecurrencyhodler yeah thought not to use my personal github account :)