This contains the following Python code with errors:
stock_manager.py- throws a "List Index out of range" Error when running thetest_stock_manager.pyunit testimage_processor.py- throws an "Out of Memory" Error when runningimage_processor.py(just add more images tosample_imagesfolder if you do not get OutofMemory error)
Install the requirements from requirements.txt
pip install -r requirements.txtRun the unit tests using Python's unittest framework:
# Run tests with basic output
python -m unittest discover tests
# Run tests with verbose output
python -m unittest discover -v tests