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 unit test for github.license/github.licenses #561

Closed
itsmemattchung opened this issue Feb 1, 2016 · 13 comments
Closed

Add unit test for github.license/github.licenses #561

itsmemattchung opened this issue Feb 1, 2016 · 13 comments
Labels

Comments

@itsmemattchung
Copy link
Contributor

itsmemattchung commented Feb 1, 2016

We need a unit test in tests/unit/test_github.py to assert the correct request is made.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/30400727-add-unit-test-for-github-license-github-licenses?utm_campaign=plugin&utm_content=tracker%2F183477&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F183477&utm_medium=issues&utm_source=github).
@sigmavirus24
Copy link
Owner

👍

@sourabhmasade
Copy link

Can you please provide more details on what tests needs to be added?
I do see tests/unit/test_licenses.py already present. So need more inputs whether tests needs to be added to this file instead of test_github.py?

@itsmemattchung
Copy link
Contributor Author

Can you please provide more details on what tests needs to be added?
I do see tests/unit/test_licenses.py already present. So need more inputs whether tests needs to be added to this file instead of test_github.py?

Hey @sourabhmasade ,
Every method that makes an API call to github needs a unit test that verifies the request is made properly. Here is an example:

https://github.com/sigmavirus24/github3.py/blob/develop/tests/unit/test_github.py/#L171-#L174

We need a unit test for the GitHub object since we have method(s) that make calls to retrieve license(s).

@itsmemattchung
Copy link
Contributor Author

hey @sourabhmasade ,
Let me know if you need any help with creating this unit test.

@mlkrueger
Copy link
Contributor

If @sourabhmasade is not going to be able to work on this I would be willing to take a shot.

@itsmemattchung
Copy link
Contributor Author

If @sourabhmasade is not going to be able to work on this I would be willing to take a shot.

@sourabhmasade may already be tackling this so let's give them until this weekend to respond. If not, I'd say give it a shot.

@mlkrueger
Copy link
Contributor

Sounds good.

@sourabhmasade
Copy link

Hey @itsmemattchung i am working on this, I need one more week unit test is in process.

@sigmavirus24
Copy link
Owner

@sourabhmasade take your time :)

@sigmavirus24
Copy link
Owner

@MLKrueger1987 let's find you a different issue to work on :)

@itsmemattchung
Copy link
Contributor Author

Hey @sourabhmasade , I'm just checking in. Do you need any help with the unit test?

@jubrilissa
Copy link

Hi @sourabhmasade have u been able to work on it. if not maybe i should give it a shot.

@sigmavirus24
Copy link
Owner

@andela-ijubril please do. I don't think @sourabhmasade has made much progress on this.

jacquerie added a commit to jacquerie/github3.py that referenced this issue Jul 12, 2018
jacquerie added a commit to jacquerie/github3.py that referenced this issue Jul 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants