Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 794 Bytes

README.md

File metadata and controls

36 lines (24 loc) · 794 Bytes

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].