pytest-prefer-nested-dup-tests 0.1.0
A Pytest plugin to drop duplicated tests during collection, but will prefer keeping nested packages.
License: MIT
Requires Python: >=3.8,<4

pytest-prefer-nested-dup-tests
==============================

by Marximus Maximus (https://www.marximus.com)

.. image:: https://github.com/MarximusMaximus/pytest-prefer-nested-dup-tests/workflows/main/badge.svg
  :target: https://github.com/MarximusMaximus/pytest-prefer-nested-dup-tests/actions
  :alt: Test Status
  :align: center

.. TODO: coveralls.io
.. .. image:: https://coveralls.io/repos/github/MarximusMaximus/pytest-prefer-nested-dup-tests/badge.svg?branch=main
..    :target: https://coveralls.io/github/MarximusMaximus/pytest-prefer-nested-dup-tests?branch=main
..    :alt: Coverage Status
..    :align: center
..
.. TODO: readthedocs.org
.. .. image:: https://readthedocs.org/projects/pytest-prefer-nested-dup-tests/badge/?version=stable
..    :target: https://pytest-prefer-nested-dup-tests.readthedocs.io/en/stable/?badge=stable
..    :alt: Documentation Status
..    :align: center
..
.. TODO: readthedocs.org license
.. .. image:: https://pytest-prefer-nested-dup-tests.readthedocs.io/en/stable/_static/license.svg
..    :target: https://github.com/MarximusMaximus/pytest-prefer-nested-dup-tests/blob/main/LICENSE
..    :alt: License: MIT
..    :align: center
..    :align: center
..
.. image:: http://img.shields.io/pypi/v/pytest-prefer-nested-dup-tests.svg
   :target: https://pypi.python.org/pypi/pytest-prefer-nested-dup-tests
   :alt: PyPI Version
   :align: center

.. image:: https://pepy.tech/badge/pytest-prefer-nested-dup-tests
   :target: https://pepy.tech/project/pytest-prefer-nested-dup-tests
   :alt: Downloads
   :align: center
.. TODO: conda-forge
.. .. image:: https://img.shields.io/conda/dn/conda-forge/pytest-prefer-nested-dup-tests.svg?label=conda-forge
..    :target: https://anaconda.org/conda-forge/pytest-prefer-nested-dup-tests/
..    :alt: conda-forge
..

.. image:: https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white
   :target: https://github.com/pre-commit/pre-commit
   :alt: pre-commit
   :align: center

.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
   :target: https://github.com/psf/black
   :alt: Code style: black
   :align: center
.. TODO: #8 (add additional linter? isort)
.. .. image:: https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336
..    :target: https://pycqa.github.io/isort/
..    :alt: Uses isort
..    :align: center

A Pytest plugin to drop duplicated tests during collection, but will prefer keeping nested packages.

By default, when de-duplicating tests, all sub-packages become top level packages. This plugin keeps
the subpackage structure intact.


Installation
------------

You can install via `pip`_ from `PyPI`_::

    $ pip install pytest-prefer-nested-dup-tests


Usage
-----

The plugin is enabled by default, no other action is necessary.


Contributing
------------

Contributions are very welcome. Please see `CONTRIBUTING.rst`_.


License
-------

Distributed under the terms of the `MIT`_ license, "pytest-prefer-nested-dup-tests" is free and open source software.

License file is available at `LICENSE`_ in "plaintext" (ASCII (ASCII-7), Extended ASCII (ASCII-8), Latin-1,
Windows-1252, and UTF-8 compatible format).


Issues
------

If you encounter any problems, please `file an issue`_ along with a detailed description.


Changelog
---------

Please see `CHANGELOG.rst`_.


Like My Work & Want To Support It?
----------------------------------

- Main Website: https://www.marximus.com
- Patreon (On Going Support): https://www.patreon.com/marximus
- Ko-fi (One Time Tip): https://ko-fi.com/marximusmaximus


.. _`CHANGELOG.rst`: https://github.com/MarximusMaximus/pytest-prefer-nested-dup-tests/blob/main/CHANGELOG.rst
.. _`CONTRIBUTING.rst`: https://github.com/MarximusMaximus/pytest-prefer-nested-dup-tests/blob/main/CONTRIBUTING.rst
.. _`file an issue`: https://github.com/MarximusMaximus/pytest-prefer-nested-dup-tests/issues
.. _`LICENSE`: https://github.com/MarximusMaximus/pytest-prefer-nested-dup-tests/blob/main/LICENSE
.. _`MIT`: http://opensource.org/licenses/MIT
.. _`pip`: https://pypi.python.org/pypi/pip/
.. _`PyPI`: https://pypi.python.org/pypi