Skip to content

test vs. tests #1165

Open
Open
@DimitriPapadopoulos

Description

@DimitriPapadopoulos

Should tests live in directory test or tests? The guide seems inconsistent to me, but I'm new to contemporary Python packaging, so I may have missed something.

It is test in guides/using-manifest-in.rst:

How files are included in an sdist

The following files are included in a source distribution by default:

  • ...
  • all files matching the pattern test/test*.py

and tests in tutorials/packaging-projects.rst:

Creating a test directory

tests/ is a placeholder for test files. Leave it empty for now.

Is tests always the expected name for the directory containing tests? Could/should the guide standardize on that?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions