Skip to content

skip tests that fail on travis. #303

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

Closed
wants to merge 1 commit into from

Conversation

graingert
Copy link
Contributor

@graingert graingert commented May 2, 2017

You should strongly consider using a tool like vcrpy, to remove the dependency on third party APIs in your tests.

@graingert graingert changed the title noop to force travis build; it looks like travis is broken. skip tests that fail on travis. May 2, 2017
@jreback
Copy link
Contributor

jreback commented May 7, 2017

much better to actually fix the tests :> skipping things can easily hide errors.

@gfyoung
Copy link
Contributor

gfyoung commented May 7, 2017

much better to actually fix the tests :> skipping things can easily hide errors.

Some I think are fixable. But there's one that's failing because the CSV data returned can't be parsed properly by pandas...not sure if that's one we can control.

@graingert
Copy link
Contributor Author

graingert commented May 7, 2017 via email

@gfyoung
Copy link
Contributor

gfyoung commented May 7, 2017

You should strongly consider using a tool like vcrpy, to remove the dependency on third party APIs in your tests.

But these tests aren't meant to be that controlled. They're testing to make sure that the data from these sources is being returned as expected. Thus, we do want to make sure our code remains compatible with their API at all times.

@gfyoung
Copy link
Contributor

gfyoung commented May 7, 2017

Sure, but better to have Travis pass, so PRs can be merged

That's a double-edged sword there (skipping at will might actually be hiding errors in your implementation). I agree with @jreback that it is better to figure out why tests are failing and patch if necessary (I imagine you and the maintainers can tell whether your changes are causing new failures). As I said before, some of them are fixable, so I would patching as many as you can and skipping any that are out of our control.

@jreback
Copy link
Contributor

jreback commented May 8, 2017

@graingert

i think fixing these are in everyone's interesting. sure some of these should be more smoke tests, but I think testing for valid data for specific fixes dates is really good. if the tests ever DO fail, then you know something has changed.

@graingert
Copy link
Contributor Author

graingert commented May 8, 2017 via email

@gfyoung
Copy link
Contributor

gfyoung commented May 8, 2017

All regular CI tests should pass without network access

Except that if the repository has a good amount of functionality that depends on interfacing with other data sources, like this one.

Ultimately, you can debate what the test should be like or organized all you want, but something tells me this PR isn't getting merged as is unless some of those tests are patched or you can provide convincing reasons as to why those tests are not fixable.

@graingert
Copy link
Contributor Author

graingert commented May 8, 2017 via email

@gfyoung
Copy link
Contributor

gfyoung commented May 8, 2017

You can have tests that check 3rd party endpoints, but they should just
check the real response matches the fixtures

What you seem to be pushing for is that there should be a separation between testing functionality and interfacing with 3rd party data sources. Sure, but that doesn't the change fact that there needs to be tests that integrate everything together, which is what we have currently.

@jreback jreback closed this in #316 May 9, 2017
jreback pushed a commit that referenced this pull request May 9, 2017
Patches all failing tests due to actual
test failures and not incompatibilities
with newer versions of pandas.

Closes gh-303.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants