Skip to content

Conversation

@michaelos443
Copy link
Owner

This PR adds two additional unit tests to test_common.py for URL match testing:

  1. test_match1_with_query_params: Tests the match1 function with URLs containing query parameters, including:

    • Extracting a video ID from a URL with query parameters
    • Extracting multiple patterns from a URL with multiple query parameters
  2. test_match1_with_complex_patterns: Tests the match1 function with more complex patterns, including:

    • Extracting content from HTML meta tags
    • Extracting charset from Content-Type headers
    • Testing behavior when no match is found

These tests improve the test coverage for the match1 function, which is a critical utility used throughout the codebase for extracting information from URLs and HTML content.


Pull Request opened by Augment Code with guidance from the PR author

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