pytest-prefer-nested-dup-tests (pypi): A Pytest plugin to drop duplicated tests during collection, but will prefer keeping nested packages.
Keywords: pytest|pytest-plugin|python