Skip to content

Conversation

@brandonschabell
Copy link
Owner

No description provided.

Copilot AI review requested due to automatic review settings October 13, 2025 17:27
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds test coverage for the get_json() method's JMESPath filtering functionality, which allows filtering JSON responses using JMESPath query expressions.

Key changes:

  • Added comprehensive test for get_json() method with JMESPath query filtering
  • Updated CHANGELOG.md to document recent refactoring and improvements

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
tests/test_url.py Added new test function with mock HTTP response to verify JMESPath filtering works with string queries, compiled expressions, and query parameters
CHANGELOG.md Updated changelog entries to reflect recent codebase refactoring and modularization changes

import urllib.parse
from pathlib import PurePosixPath
from typing import Any, cast
from unittest.mock import Mock
Copy link

Copilot AI Oct 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Import Mock from unittest.mock at the top level but use patch from within the test function. For consistency, move the patch import to the top level imports alongside Mock.

Suggested change
from unittest.mock import Mock
from unittest.mock import Mock, patch

Copilot uses AI. Check for mistakes.
@brandonschabell brandonschabell merged commit f5592a4 into main Oct 13, 2025
7 checks passed
@brandonschabell brandonschabell deleted the jmespath-tests branch October 13, 2025 17:28
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.

2 participants