Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info

The tutorial repository can be found here:

https://gitlab.eufus.eupsnc.pl/bpogodzinskiach/ach-tutorials/-/tree/master/TDD-python


Create a simple project

To present an example of Pytest usage we need to create a Python project at the beginning.  In the project folder called calculator, we are going to create the Python package sources.  For tutorial purposes, we are creating operations.py contains a simple divide function and empty file __init__.pyCreating the __init__.py file means that the sources package can be easily imported as a module from the parent directory.

...