Skip to content

An example python application with opportunities for refactoring and testing.

License

Notifications You must be signed in to change notification settings

prof-rossetti/quality-control-exercise-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

"Quality Control" Exercise

Provides an example application with opportunities for refactoring and testing.

Setup

conda create -n id-autogen-env python=3.7
conda activate id-autogen-env

Copy the default products CSV file into the "data" directory, where the application expects it to be:

cp test/mock_data/default_products.csv data/products.csv # (or do it manually)

Usage

Run the app:

python app/inventory_app.py

Testing

Install the pytest package, if necessary (first time only, from within the virtual environment):

pip install pytest

Run tests:

pytest

About

An example python application with opportunities for refactoring and testing.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages