Skip to content

parameterize tests in scalar/timedelta #20428

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

Merged
merged 5 commits into from
Mar 22, 2018

Conversation

minggli
Copy link
Contributor

@minggli minggli commented Mar 20, 2018

@minggli minggli changed the title parameterize test_formats.py parameterize tests in scalar/timedelta Mar 20, 2018
@codecov
Copy link

codecov bot commented Mar 20, 2018

Codecov Report

Merging #20428 into master will decrease coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #20428      +/-   ##
==========================================
- Coverage    91.8%   91.77%   -0.03%     
==========================================
  Files         152      152              
  Lines       49215    49215              
==========================================
- Hits        45181    45169      -12     
- Misses       4034     4046      +12
Flag Coverage Δ
#multiple 90.16% <ø> (-0.03%) ⬇️
#single 41.84% <ø> (-0.01%) ⬇️
Impacted Files Coverage Δ
pandas/plotting/_converter.py 65.07% <0%> (-1.74%) ⬇️

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 01882ba...e5df1dd. Read the comment docs.

@@ -195,28 +195,22 @@ def test_iso_constructor_raises(fmt):
Timedelta(fmt)


def test_td_constructor_on_nanoseconds():
@pytest.mark.parametrize('constructed_td, conversion',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just stylistically if you put the left bracket to start the list of parameters on the first line it could make this more readable (reduces the indentation required for every subsequent line)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very good point. thanks!

@jreback jreback added Testing pandas testing functions or related to the test suite Timedelta Timedelta data type labels Mar 22, 2018
@jreback jreback added this to the 0.23.0 milestone Mar 22, 2018
@jreback jreback merged commit 5cf9773 into pandas-dev:master Mar 22, 2018
@jreback
Copy link
Contributor

jreback commented Mar 22, 2018

thans @minggli

happyily will take any parameterization tests! would take even w/o an issue

@minggli minggli deleted the refactor/test_formats branch March 23, 2018 19:57
javadnoorb pushed a commit to javadnoorb/pandas that referenced this pull request Mar 29, 2018
dworvos pushed a commit to dworvos/pandas that referenced this pull request Apr 2, 2018
kornilova203 pushed a commit to kornilova203/pandas that referenced this pull request Apr 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Testing pandas testing functions or related to the test suite Timedelta Timedelta data type
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants