DFY-NCSU / slash-phase6

Slash is a web application that scrapes the most popular e-commerce websites for the best deals so that you can get the best value for your money!
MIT License
3 stars 4 forks source link

Test Cases for `search_items_API` Function #8

Open TheFatBlue opened 3 weeks ago

TheFatBlue commented 3 weeks ago

Summary

This report outlines test cases designed to check the behavior of the search_items_API function when handling various site parameters, including invalid and multi-site queries. These tests are intended to ensure that the function responds appropriately to different input scenarios.

Test Cases Overview

  1. Invalid Site Parameter:

    • Tests the function’s response when given an unsupported site code. Expected behavior is a return of None, indicating no processing for invalid sites.
  2. Multi-Site Query:

    • Tests the function with a parameter that requests data from all available sites. Ensures the function consolidates results across different sources as expected.

Observations

TheFatBlue commented 3 weeks ago

If you want to add more test cases, please report here.

TheFatBlue commented 3 weeks ago

Add some test cases in #9