Skip to content

Conversation

gfyoung
Copy link
Member

@gfyoung gfyoung commented Nov 15, 2018

This is only a start. To keep the diff small, we are only converting c_parser_only.

If this looks good, the other test classes will soon follow in subsequent PR's.

cc @jreback

@gfyoung gfyoung added Refactor Internal refactoring of code Testing pandas testing functions or related to the test suite IO CSV read_csv, to_csv labels Nov 15, 2018
@pep8speaks
Copy link

Hello @gfyoung! Thanks for submitting the PR.

@gfyoung gfyoung force-pushed the pytestify-parsers-tests branch from 951f0f8 to fb8d74a Compare November 15, 2018 02:27
This is only a start. To keep the diff small,
we are only converting c_parser_only. The
other test classes will soon follow.
@gfyoung gfyoung force-pushed the pytestify-parsers-tests branch from fb8d74a to d916288 Compare November 15, 2018 05:41
@codecov
Copy link

codecov bot commented Nov 15, 2018

Codecov Report

Merging #23712 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #23712   +/-   ##
=======================================
  Coverage   92.24%   92.24%           
=======================================
  Files         161      161           
  Lines       51336    51336           
=======================================
  Hits        47357    47357           
  Misses       3979     3979
Flag Coverage Δ
#multiple 90.64% <ø> (ø) ⬆️
#single 42.34% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6920363...d916288. Read the comment docs.

@jreback
Copy link
Contributor

jreback commented Nov 15, 2018

how do you run all of the tests on the c parser though? don't you need to also inject the fixture into the current test_parser.py?

@gfyoung
Copy link
Member Author

gfyoung commented Nov 15, 2018

@jreback @jbrockmendel : Here is the plan:

  • c_parser_only.py is now separate from test_parsers.py, so you can just run pytest test_c_parser_only.py (the fixtures get automatically injected per the newly created conftest.py). The new format of those tests is 100% functional (no classes), which is more pytest-idiomatic.

  • If this format looks good, I will convert all other files (e.g. header.py, comment.py, mangle_dupe_cols.py similarly in subsequent PR's (we will be in this weird intermediate state with test_parsers.py and conftest.py co-existing).

Once that is done, we no longer need test_parsers.py. All tests will be nice and modular and not all clumped into one giant test class as they are currently.

Hopefully that clears things up?

@gfyoung
Copy link
Member Author

gfyoung commented Nov 17, 2018

@jreback : Any further thoughts on this?

@jreback jreback added this to the 0.24.0 milestone Nov 17, 2018
@jreback jreback merged commit 1fecce2 into pandas-dev:master Nov 17, 2018
@jreback
Copy link
Contributor

jreback commented Nov 17, 2018

lgtm @gfyoung keep em coming!

@gfyoung gfyoung deleted the pytestify-parsers-tests branch November 17, 2018 23:13
gfyoung added a commit to forking-repos/pandas that referenced this pull request Nov 18, 2018
Adds more idiom to the following:

* parser/comment --> parser/test_comment
* parser/converters --> parser/test_converters
* parser/compression --> parser/test_compression

Builds off of pandas-devgh-23712.
gfyoung added a commit to forking-repos/pandas that referenced this pull request Nov 18, 2018
Adds more idiom to the following:

* parser/comment --> parser/test_comment
* parser/converters --> parser/test_converters
* parser/compression --> parser/test_compression

Builds off of pandas-devgh-23712.
gfyoung added a commit to forking-repos/pandas that referenced this pull request Nov 18, 2018
Adds more idiom to the following:

* parser/comment --> parser/test_comment
* parser/converters --> parser/test_converters
* parser/compression --> parser/test_compression
* parser/dialect --> parser/test_dialect

Builds off of pandas-devgh-23712.
gfyoung added a commit to forking-repos/pandas that referenced this pull request Nov 18, 2018
Adds more idiom to the following:

* parser/comment --> parser/test_comment
* parser/converters --> parser/test_converters
* parser/compression --> parser/test_compression
* parser/dialect --> parser/test_dialect

Builds off of pandas-devgh-23712.
jreback pushed a commit that referenced this pull request Nov 18, 2018
Adds more idiom to the following:

* parser/comment --> parser/test_comment
* parser/converters --> parser/test_converters
* parser/compression --> parser/test_compression
* parser/dialect --> parser/test_dialect

Builds off of gh-23712.
tm9k1 pushed a commit to tm9k1/pandas that referenced this pull request Nov 19, 2018
This is only a start. To keep the diff small,
we are only converting c_parser_only. The
other test classes will soon follow.
tm9k1 pushed a commit to tm9k1/pandas that referenced this pull request Nov 19, 2018
Adds more idiom to the following:

* parser/comment --> parser/test_comment
* parser/converters --> parser/test_converters
* parser/compression --> parser/test_compression
* parser/dialect --> parser/test_dialect

Builds off of pandas-devgh-23712.
gfyoung added a commit to forking-repos/pandas that referenced this pull request Nov 20, 2018
Adds more idiom to the following:

* parser/header --> parser/test_header
* parser/dtypes --> parser/test_dtypes
* parser/index_col --> parser/test_index_col
* parser/mangle_dupes --> parser/test_mangle_dupes

Builds off of pandas-devgh-23712.
gfyoung added a commit to forking-repos/pandas that referenced this pull request Nov 20, 2018
Adds more idiom to the following:

* parser/header --> parser/test_header
* parser/dtypes --> parser/test_dtypes
* parser/index_col --> parser/test_index_col
* parser/mangle_dupes --> parser/test_mangle_dupes

Builds off of pandas-devgh-23712.
gfyoung added a commit to forking-repos/pandas that referenced this pull request Nov 20, 2018
Adds more idiom to the following:

* parser/header --> parser/test_header
* parser/dtypes --> parser/test_dtypes
* parser/index_col --> parser/test_index_col
* parser/mangle_dupes --> parser/test_mangle_dupes

Builds off of pandas-devgh-23712.
jreback pushed a commit that referenced this pull request Nov 20, 2018
Adds more idiom to the following:

* parser/header --> parser/test_header
* parser/dtypes --> parser/test_dtypes
* parser/index_col --> parser/test_index_col
* parser/mangle_dupes --> parser/test_mangle_dupes

Builds off of gh-23712.
gfyoung added a commit to forking-repos/pandas that referenced this pull request Nov 21, 2018
Adds more idiom to the following:

* parser/na_values --> parser/test_na_values
* parser/parse_dates --> parser/test_parse_dates
* parser/multithread --> parser/test_multi_thread

Also adds new test suite: test_date_converters

Builds off of pandas-devgh-23712.
gfyoung added a commit to forking-repos/pandas that referenced this pull request Nov 21, 2018
Adds more idiom to the following:

* parser/skiprows --> parser/test_skiprows
* parser/na_values --> parser/test_na_values
* parser/parse_dates --> parser/test_parse_dates
* parser/multithread --> parser/test_multi_thread

Also adds new test suite: test_date_converters

Builds off of pandas-devgh-23712.
gfyoung added a commit to forking-repos/pandas that referenced this pull request Nov 21, 2018
Adds more idiom to the following:

* parser/skiprows --> parser/test_skiprows
* parser/na_values --> parser/test_na_values
* parser/parse_dates --> parser/test_parse_dates
* parser/multithread --> parser/test_multi_thread

Also adds new test suite: test_date_converters

Builds off of pandas-devgh-23712.
gfyoung added a commit to forking-repos/pandas that referenced this pull request Nov 21, 2018
Adds more idiom to the following:

* parser/skiprows --> parser/test_skiprows
* parser/na_values --> parser/test_na_values
* parser/parse_dates --> parser/test_parse_dates
* parser/multithread --> parser/test_multi_thread

Also adds new test suite: test_date_converters

Builds off of pandas-devgh-23712.
gfyoung added a commit to forking-repos/pandas that referenced this pull request Nov 21, 2018
Adds more idiom to the following:

* parser/skiprows --> parser/test_skiprows
* parser/na_values --> parser/test_na_values
* parser/parse_dates --> parser/test_parse_dates
* parser/multithread --> parser/test_multi_thread

Also adds new test suite: test_date_converters

Builds off of pandas-devgh-23712.
jreback pushed a commit that referenced this pull request Nov 21, 2018
Adds more idiom to the following:

* parser/skiprows --> parser/test_skiprows
* parser/na_values --> parser/test_na_values
* parser/parse_dates --> parser/test_parse_dates
* parser/multithread --> parser/test_multi_thread

Also adds new test suite: test_date_converters

Builds off of gh-23712.
gfyoung added a commit to forking-repos/pandas that referenced this pull request Nov 22, 2018
Adds more idiom to the following:

* parser/common --> parser/test_common
* parser/quoting --> parser/test_quoting
* parser/usecols --> parser/test_usecols
* parser/python_parser_only -->
parser/test_python_parser_only

Also deletes parser/test_parsers.

Builds off of pandas-devgh-23712.
gfyoung added a commit to forking-repos/pandas that referenced this pull request Nov 22, 2018
Adds more idiom to the following:

* parser/common --> parser/test_common
* parser/quoting --> parser/test_quoting
* parser/usecols --> parser/test_usecols
* parser/python_parser_only -->
parser/test_python_parser_only

Also deletes parser/test_parsers.

Builds off of pandas-devgh-23712.
gfyoung added a commit to forking-repos/pandas that referenced this pull request Nov 22, 2018
Adds more idiom to the following:

* parser/common --> parser/test_common
* parser/quoting --> parser/test_quoting
* parser/usecols --> parser/test_usecols
* parser/python_parser_only -->
parser/test_python_parser_only

Also deletes parser/test_parsers.

Builds off of pandas-devgh-23712.
gfyoung added a commit to forking-repos/pandas that referenced this pull request Nov 22, 2018
Adds more idiom to the following:

* parser/common --> parser/test_common
* parser/quoting --> parser/test_quoting
* parser/usecols --> parser/test_usecols
* parser/python_parser_only -->
parser/test_python_parser_only

Also:

* Finally delete parser/test_parsers!
* Bug in capture_stdout decorator in which
we were forgetting to use compat.wraps.

Builds off of pandas-devgh-23712.
jreback pushed a commit that referenced this pull request Nov 23, 2018
Adds more idiom to the following:

* parser/common --> parser/test_common
* parser/quoting --> parser/test_quoting
* parser/usecols --> parser/test_usecols
* parser/python_parser_only -->
parser/test_python_parser_only

Also:

* Finally delete parser/test_parsers!
* Bug in capture_stdout decorator in which
we were forgetting to use compat.wraps.

Builds off of gh-23712.
Pingviinituutti pushed a commit to Pingviinituutti/pandas that referenced this pull request Feb 28, 2019
This is only a start. To keep the diff small,
we are only converting c_parser_only. The
other test classes will soon follow.
Pingviinituutti pushed a commit to Pingviinituutti/pandas that referenced this pull request Feb 28, 2019
Adds more idiom to the following:

* parser/comment --> parser/test_comment
* parser/converters --> parser/test_converters
* parser/compression --> parser/test_compression
* parser/dialect --> parser/test_dialect

Builds off of pandas-devgh-23712.
Pingviinituutti pushed a commit to Pingviinituutti/pandas that referenced this pull request Feb 28, 2019
Adds more idiom to the following:

* parser/header --> parser/test_header
* parser/dtypes --> parser/test_dtypes
* parser/index_col --> parser/test_index_col
* parser/mangle_dupes --> parser/test_mangle_dupes

Builds off of pandas-devgh-23712.
Pingviinituutti pushed a commit to Pingviinituutti/pandas that referenced this pull request Feb 28, 2019
Adds more idiom to the following:

* parser/skiprows --> parser/test_skiprows
* parser/na_values --> parser/test_na_values
* parser/parse_dates --> parser/test_parse_dates
* parser/multithread --> parser/test_multi_thread

Also adds new test suite: test_date_converters

Builds off of pandas-devgh-23712.
Pingviinituutti pushed a commit to Pingviinituutti/pandas that referenced this pull request Feb 28, 2019
Adds more idiom to the following:

* parser/common --> parser/test_common
* parser/quoting --> parser/test_quoting
* parser/usecols --> parser/test_usecols
* parser/python_parser_only -->
parser/test_python_parser_only

Also:

* Finally delete parser/test_parsers!
* Bug in capture_stdout decorator in which
we were forgetting to use compat.wraps.

Builds off of pandas-devgh-23712.
Pingviinituutti pushed a commit to Pingviinituutti/pandas that referenced this pull request Feb 28, 2019
This is only a start. To keep the diff small,
we are only converting c_parser_only. The
other test classes will soon follow.
Pingviinituutti pushed a commit to Pingviinituutti/pandas that referenced this pull request Feb 28, 2019
Adds more idiom to the following:

* parser/comment --> parser/test_comment
* parser/converters --> parser/test_converters
* parser/compression --> parser/test_compression
* parser/dialect --> parser/test_dialect

Builds off of pandas-devgh-23712.
Pingviinituutti pushed a commit to Pingviinituutti/pandas that referenced this pull request Feb 28, 2019
Adds more idiom to the following:

* parser/header --> parser/test_header
* parser/dtypes --> parser/test_dtypes
* parser/index_col --> parser/test_index_col
* parser/mangle_dupes --> parser/test_mangle_dupes

Builds off of pandas-devgh-23712.
Pingviinituutti pushed a commit to Pingviinituutti/pandas that referenced this pull request Feb 28, 2019
Adds more idiom to the following:

* parser/skiprows --> parser/test_skiprows
* parser/na_values --> parser/test_na_values
* parser/parse_dates --> parser/test_parse_dates
* parser/multithread --> parser/test_multi_thread

Also adds new test suite: test_date_converters

Builds off of pandas-devgh-23712.
Pingviinituutti pushed a commit to Pingviinituutti/pandas that referenced this pull request Feb 28, 2019
Adds more idiom to the following:

* parser/common --> parser/test_common
* parser/quoting --> parser/test_quoting
* parser/usecols --> parser/test_usecols
* parser/python_parser_only -->
parser/test_python_parser_only

Also:

* Finally delete parser/test_parsers!
* Bug in capture_stdout decorator in which
we were forgetting to use compat.wraps.

Builds off of pandas-devgh-23712.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IO CSV read_csv, to_csv Refactor Internal refactoring of code Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants