-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: changed io.wb.get_countries URL #6008
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
Conversation
can u add a test which can validate this ? |
Sure, I'll add a test to check if 'Zimbabwe' is the last country in the data frame. I'm brand new to this though, so I could use some help with writing the test properly. |
Just push your changes to this branch and then we'll take a look. There's a few notes here that should help you get started, specifically the section on tests that need network connectivity. |
@slow | ||
@network | ||
def test_wdi_get_countries(self): | ||
raise nose.SkipTest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you are skipping the test?
is your master update to date?
|
Master is updated. I copied from the other tests in the
|
I'll take a look at some other test modules and see if I can rewrite these. |
just delete the raise nose.SkipTest lines entirely |
can you also add a release note in 0.13.1 (reference this PR), about this bugfix |
can you rebase, add release notes and remove those SkipTest lines? thanks |
Yes. Should I do this before the tests are passing though? |
yes always should write the first to make sure that they in fact fail (otherwise could have a bogus test) |
Makes sense! I'll make the change tonight. |
BLD/DOC: report context on warnings and add :okwarning: to ipython_directive
This rebase catastrophe is getting out of hand. I don't think we should require |
@y-p Should we just take care of it ourselves? I distinctly remember admonishment from you about learning git ... not that it wasn't completely warranted, but I think it's important to learn about rebase if you're going to contribute to OSS using git. That said, for a DBC it's probably a little much |
Your PRs showed that you were substantially invested in writing code and you made If you'll recall, I did not teach you git (except on specific points you asked about). The amount of impromptu git tutorials that span more comments then the actual discussion If someone really screws up, admonish. if someone starts submitting lots of good PRs You do this because you're truely nice, generous people who like to share knowledge And I sincerly hope you've learned to shrug off my admonishments. It's just a thing. |
Fair enough. |
btw, the rebase+force push is kind of unique to pandas. Many (most?) projects are actually -1 on |
Good to know. I'm not sure I agree with no rebases ATB ... but that's a discussion for another point in the space time continuum. |
My 2 cents- I found a tiny bug that was trivial to correct. Just wanted to If you could point me to a resource to learn more about Git and Testing Thanks, On Saturday, January 25, 2014, Phillip Cloud [email protected]
|
* clarkfitzg-master: changed get_countries URL Added test for wb.get_countries
@clarkfitzg , thanks for the report and the fix. We appreciate both and just to make it clear: I've neatened your PR and pushed to master as 70b1ad4. It'll be part of the soon-to-be-released Re git tutorials, I've found http://pcottle.github.io/learnGitBranching/ to be a useful resource for |
The pandas GH wiki also has some git sections: https://github.com/pydata/pandas/wiki |
@y-p That's a nice tutorial. Very co-worker friendly :) |
@cpcloud maybe add a link in the pandas github page to that one? |
done |
@y-p, @cpcloud, and @jreback, I very much appreciate the follow up and the hand holding. Must be a tremendous amount of effort on your parts to organize all these different contributions. This was my first attempt at contributing to OSS, and now I have a better idea of how to go about it. Next time I'll bring more git-fu to the game. |
Np happy to help On Saturday, January 25, 2014, Clark Fitzgerald [email protected]
Best, |
Only 50 countries show up for the get_countries() call in io.wb, rather than the 256 that actually exist. Looks like a typo in the World Bank Documentation. The workaround is to request 1000 countries. Running this change by @vincentarelbundock.