Skip to content

Commit 14a5900

Browse files
Abel Milashclaude
andcommitted
Remove unused imports from _batch.py; fix test imports to use _batch_base
Helpers moved to _BatchBase (_CRLF, _BOUNDARY_RE, _extract_boundary, etc.) are no longer re-imported by _BatchClient. Two test files updated to import these helpers directly from _batch_base where they now live. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent f075a16 commit 14a5900

3 files changed

Lines changed: 5 additions & 8 deletions

File tree

src/PowerPlatform/Dataverse/data/_batch.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,7 @@
3434
_QuerySql,
3535
_ChangeSet,
3636
_ChangeSetBatchItem,
37-
_CRLF,
3837
_MAX_BATCH_SIZE,
39-
_BOUNDARY_RE,
40-
_raise_top_level_batch_error,
41-
_extract_boundary,
42-
_split_multipart,
43-
_parse_mime_part,
44-
_parse_http_response_part,
4538
)
4639

4740
if TYPE_CHECKING:

tests/unit/data/test_batch_edge_cases.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@
1818
_ChangeSetBatchItem,
1919
_RecordDelete,
2020
_RecordGet,
21+
_MAX_BATCH_SIZE,
22+
)
23+
from PowerPlatform.Dataverse.data._batch_base import (
2124
_extract_boundary,
2225
_raise_top_level_batch_error,
2326
_split_multipart,
2427
_parse_http_response_part,
2528
_CRLF,
26-
_MAX_BATCH_SIZE,
2729
)
2830
from PowerPlatform.Dataverse.core.errors import HttpError, ValidationError
2931
from PowerPlatform.Dataverse.data._raw_request import _RawRequest

tests/unit/data/test_batch_serialization.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
_TableGetRelationship,
3030
_TableCreateLookupField,
3131
_QuerySql,
32+
)
33+
from PowerPlatform.Dataverse.data._batch_base import (
3234
_extract_boundary,
3335
_raise_top_level_batch_error,
3436
_parse_mime_part,

0 commit comments

Comments
 (0)