Skip to content

Show test module in the PytestCollectionWarning message#5346

Merged
asottile merged 1 commit into
pytest-dev:masterfrom
nicoddemus:improve-collect-warn-message
May 30, 2019
Merged

Show test module in the PytestCollectionWarning message#5346
asottile merged 1 commit into
pytest-dev:masterfrom
nicoddemus:improve-collect-warn-message

Conversation

@nicoddemus

Copy link
Copy Markdown
Member

Related to #5330

@codecov

codecov Bot commented May 30, 2019

Copy link
Copy Markdown

Codecov Report

Merging #5346 into master will decrease coverage by 0.15%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5346      +/-   ##
==========================================
- Coverage   93.97%   93.82%   -0.16%     
==========================================
  Files         115      115              
  Lines       26278    26282       +4     
  Branches     2589     2589              
==========================================
- Hits        24694    24658      -36     
- Misses       1267     1305      +38     
- Partials      317      319       +2
Impacted Files Coverage Δ
src/_pytest/python.py 92.97% <ø> (-0.37%) ⬇️
testing/python/collect.py 99.36% <100%> (+7.89%) ⬆️
testing/python/fixtures.py 84.76% <0%> (-13.75%) ⬇️
testing/test_warnings.py 45.35% <0%> (-0.55%) ⬇️
src/_pytest/fixtures.py 97.79% <0%> (-0.14%) ⬇️
src/_pytest/compat.py 97% <0%> (+1%) ⬆️
testing/python/integration.py 91.42% <0%> (+10.71%) ⬆️
testing/test_pluginmanager.py 67.37% <0%> (+13.13%) ⬆️

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 72fc439...5cbc06a. Read the comment docs.

Comment thread testing/python/collect.py
testdir.makepyfile(
"""
class TestClass1(object):
def __new__(self):

@nicoddemus nicoddemus May 30, 2019

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Note: this was being tested in a separate test about namedtuple support. Decided to make a specific test for this instead.

@blueyed blueyed left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Great!
Strictly speaking it should go to features though I think.

@asottile asottile left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@asottile asottile merged commit 654d8da into pytest-dev:master May 30, 2019
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