Skip to content

Solved issue #22471 Replaced TestData with fixtures #22928

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
Closed

Solved issue #22471 Replaced TestData with fixtures #22928

wants to merge 1 commit into from

Conversation

akulagrawal
Copy link

@akulagrawal akulagrawal commented Oct 1, 2018

@h-vetinari
Copy link
Contributor

@akulagrawal

Was too slow to answer in the issue, but here are a few points:

  • Keep it to one module (=file) per pull request (=PR)

  • I wrote in TST/CLN: remove TestData from frame-tests; replace with fixtures #22471:

    Basically, it comes down to replacing all the occurrences of self.<name> with translation_guide[<name>] (and specifying <name> as a parameter to the function).

    You did not do this here, and so the tests cannot possibly pass.

  • To test locally:

    • (make sure you're in the right environment and folder)
    • run pytest pandas/tests/frame/test_xxx.py from the command line and fix any failures
  • Do the same with flake8 pandas/tests/frame/test_xxx.py to make sure your PR will not fail the lint checks

General points:

@akulagrawal
Copy link
Author

@h-vetinari. Thanks for the help! my bad I didn't specify as a parameter to the function!

@jreback
Copy link
Contributor

jreback commented Oct 7, 2018

let's do this in smaller batches. If its a long / complicated file, then a single file per PR is ok, if its mostly trivial changes then you can group multiple files into a single PR.

@jreback jreback closed this Oct 7, 2018
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.

TST/CLN: remove TestData from frame-tests; replace with fixtures
3 participants