Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

About creating test cases #10

Open
RaenonX opened this issue Sep 22, 2020 · 0 comments
Open

About creating test cases #10

RaenonX opened this issue Sep 22, 2020 · 0 comments
Labels

Comments

@RaenonX
Copy link
Owner

RaenonX commented Sep 22, 2020

We use pytest for this project. Here is its documentation.

Rules of thumb

Every test related things will be prefixed with test_ for auto test discovery.

  • Every test case will be a module-level function starting with test_.
  • Every file containing the test cases will be named with the prefix test_.
  • Every module containing the test case files will be named with the prefix test_.

For the module to be a module (and to be discovered), you need to have an __init__.py inside the module folder, regardless if it's an empty file (and it usually will be empty, except that you want to inject something).

@RaenonX RaenonX added the Notes label Sep 22, 2020
This was referenced Sep 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant