Skip to content
This repository was archived by the owner on Feb 19, 2023. It is now read-only.

Add test for PDF010 #15

Merged
merged 2 commits into from
Apr 10, 2021
Merged

Conversation

mgmanzella
Copy link
Contributor

Closes #12

@codecov
Copy link

codecov bot commented Apr 10, 2021

Codecov Report

Merging #15 (c8df69f) into main (ef8b5ca) will increase coverage by 0.58%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #15      +/-   ##
==========================================
+ Coverage   84.70%   85.29%   +0.58%     
==========================================
  Files          26       26              
  Lines         340      340              
==========================================
+ Hits          288      290       +2     
+ Misses         52       50       -2     
Impacted Files Coverage Δ
pandas_dev_flaker/_plugins_tree/conftest.py 100.00% <0.00%> (+16.66%) ⬆️

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 ef8b5ca...c8df69f. Read the comment docs.

(
pytest.param(
"conftest = 'foo'",
id="set conftest",
Copy link
Member

Choose a reason for hiding this comment

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

assign to conftest?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

Comment on lines 36 to 40
pytest.param(
"import conftest",
"1:0: PDF010 import from 'conftest' found",
id="import from conftest",
),
Copy link
Member

Choose a reason for hiding this comment

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

nice! Can you also add a testcase which has from conftest import foo? (this one may not pass... 😳 )

Copy link
Member

Choose a reason for hiding this comment

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

this one likely passes, but from pandas.conftest import foo likely won't - can you include that one as well? If you know how to fix the source code to make it pass, then even better 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes for sure!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

from pandas.conftest import foo didn't pass -- should i open an issue for that case separately?

Copy link
Member

Choose a reason for hiding this comment

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

sure - let's take this one as it is, and if you're interested in making a separate PR to make from pandas.conftest import foo pass as well, then even better! (else I'll do it later)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeh that's what i was getting at 🤣 i wanted to work on making tests pass for that case

Copy link
Member

Choose a reason for hiding this comment

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

😆 cool - I went and opened a new issue anyway, #16

@mgmanzella mgmanzella requested a review from MarcoGorelli April 10, 2021 16:23
@MarcoGorelli MarcoGorelli merged commit 0808097 into pandas-dev:main Apr 10, 2021
@mgmanzella mgmanzella deleted the tests/issue-12 branch April 10, 2021 16:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add test for PDF010
2 participants