New USPTO API Endpoints#131
Conversation
| This module contains comprehensive tests for all classes in pyUSPTO.models.oa_actions. | ||
| """ | ||
|
|
||
| from datetime import datetime, timezone |
Check notice
Code scanning / CodeQL
Unused import Note test
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI about 2 months ago
To fix an unused import, remove the unneeded names from the import statement so that only actually-used symbols are imported. This simplifies the code and removes an unnecessary dependency.
In this file (tests/models/test_oa_actions_models.py), the best fix is to delete the entire line from datetime import datetime, timezone at line 6, since neither datetime nor timezone appears in the provided tests. No additional methods, definitions, or replacement imports are needed. The neighboring imports (from typing import Any, import pytest, and the pyUSPTO.models.oa_actions imports) should remain untouched.
| @@ -3,7 +3,6 @@ | ||
| This module contains comprehensive tests for all classes in pyUSPTO.models.oa_actions. | ||
| """ | ||
|
|
||
| from datetime import datetime, timezone | ||
| from typing import Any | ||
|
|
||
| import pytest |
| This module contains comprehensive tests for all classes in pyUSPTO.models.oa_actions. | ||
| """ | ||
|
|
||
| from datetime import datetime, timezone |
Refactor pagination loop and remove unused field retrieval example.
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
Description
Adds three new API clients for USPTO Office Action data endpoints, each with full model, client, test, and documentation coverage:
hasRej101/102/103/112/DP), claim arrays, and examiner classification metadataAll three are provided with convenience query parameters for common fields.
Type of Change
Testing
912 unit tests passing, 100% coverage across all source files. Each new module includes unit tests for models, client, and integration tests (skipped by default; enabled via
ENABLE_INTEGRATION_TESTS=true).Checklist
Related Issues
N/A
Additional Notes
Each client follows the established patterns from
EnrichedCitationsClient. Thebase.pyform-urlencoded branch in_get_modelwas extended to include all three new response types. Config and environment variablesupport added for all three base URLs (
USPTO_OA_ACTIONS_BASE_URL,USPTO_OA_REJECTIONS_BASE_URL,USPTO_OA_CITATIONS_BASE_URL).