Skip to content

Conversation

@sindhu-sangam
Copy link

Completed Tasks

  1. Enhanced Tests for Pets
    Extended and corrected all three test cases in test_pet.py according to TODO instructions.
    Added parameterization to cover all possible pet statuses.
    Improved schema validation to ensure API responses match expected structure.
    Included edge case testing for Pet IDs, covering valid, invalid, and special-character inputs.
  2. Implemented PATCH Tests for Orders
    Fully implemented tests for the PATCH /store/order/{order_id} endpoint.
    Covered both successful updates and error scenarios.
    Verified response codes and messages
  3. Introduced Fixtures for Reliable Test Data
    Created fixtures to generate unique orders with distinct Pet IDs for each test run, ensuring independence and repeatability.
    Added an Order schema for validating responses from order-related API calls.
  4. Resolved Schema Mismatches
    Adjusted data types in schemas to match API responses (e.g., the name attribute corrected from integer to string).
    Identified Bugs
  5. The “Get Pet By ID” endpoint does not return a 404 error for special-character inputs, causing one test case to fail.
  6. The PATCH endpoint currently allows updates with invalid status values, lacking proper status validation.
    Recommended Enhancements
  7. Implement auto-generated Pet IDs to prevent duplicate entries.
  8. Validate Pet ID inputs to ensure they are integers and return clear errors for invalid input.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant