Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 700 Bytes

File metadata and controls

25 lines (17 loc) · 700 Bytes

Error Diagnosis Challenge

This contains the following Python code with errors:

  1. stock_manager.py - throws a "List Index out of range" Error when running the test_stock_manager.py unit test
  2. image_processor.py - throws an "Out of Memory" Error when running image_processor.py (just add more images to sample_images folder if you do not get OutofMemory error)

Setup

Install the requirements from requirements.txt

pip install -r requirements.txt

Run the Tests

Run 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