Skip to content

ptracesecurity/pytest-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

pytest - Python Testing Example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages