/pytest-example

pytest - Python Testing Example

Primary LanguagePython

pytest-example

pytest - Python Testing Example

This is a simple example of how to use pytest to integreate testing in your Python application.

Usage

This example comes with several test files (e.g. test_app.py, test_funcs.py, etc.).

Pytest Output

Code Structure

myapp/
    app.py
    mymodule/
        __init__.py
        funcs.py
tests/
    __init__.py
    test_app.py
        mymodule/
            __init__.py
            test_additions.py
            test_funcs.py

Contact

Author: Gianni Gnesa (gnix) (@GianniGnesa)[https://twitter.com/giannignesa]

For any question about this code, feel free to ask in the (PSEC Facebook Group))[https://www.facebook.com/groups/psec.community].