Commit f4ac147e authored by Gabriel Couture's avatar Gabriel Couture

update README

parent 9c875f8e
Pipeline #179 passed with stage
in 4 seconds
# HowToTestBasic
Example of a basic python project with tests
Example of a basic python project with tests.
__Note__: Please note that this project does not really respect
"good practices" of software engineering. Functions in the `conversion`
module should have been in the `DVH` class. The reason why it is not the case
in this example is because I want to show simple tests of functions (see `tests/test_conversion`) that
use a custom object (`DVH`). This way, we can introduce `mocking`, which is
an important concept of unit testing.
The `` file is where you setup your commands for the tests.
Here, in this basic project example, the only command to run tests is:
$ python test
## Virtual environment
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment