jupyter-packaging icon indicating copy to clipboard operation
jupyter-packaging copied to clipboard

Warning while running tests

Open filbranden opened this issue 4 years ago • 0 comments

I see this warning when running tests/test_skip_if_exists.py:

$ pytest tests/test_skip_if_exists.py
============================================================================== test session starts ==============================================================================
platform linux -- Python 3.8.6, pytest-4.6.11, py-1.10.0, pluggy-0.13.1
rootdir: ~/devel/jupyter-packaging
plugins: anyio-2.0.2
collected 2 items                                                                                                                                                               

tests/test_skip_if_exists.py ..                                                                                                                                           [100%]

=============================================================================== warnings summary ================================================================================
tests/test_skip_if_exists.py:7
  ~/devel/jupyter-packaging/tests/test_skip_if_exists.py:7: PytestCollectionWarning: cannot collect test class 'TestCommand' because it has a __init__ constructor (from: tests/test_skip_if_exists.py)
    class TestCommand(BaseCommand):

-- Docs: https://docs.pytest.org/en/latest/warnings.html
===================================================================== 2 passed, 1 warnings in 0.09 seconds ======================================================================

Can this be fixed not to produce a warning and finish with a fully clean run?

filbranden avatar Jan 08 '21 20:01 filbranden