Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def get_request_property_chunks(
# todo: Add ability to specify parameter delimiter representation and take into account in property_field_size
property_field_size = (
len(property_field)
+ 1 # The +1 represents the extra character for the delimiter in between properties
+ 3 # The +3 represents the extra characters for encoding the delimiter in between properties
if self.property_limit_type == PropertyLimitType.characters
else 1
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@
["kate", "laurie", "jaclyn"],
None,
PropertyLimitType.characters,
15,
20,
[["kate", "laurie"], ["jaclyn"]],
id="test_property_chunking_limit_characters",
),
pytest.param(
["laurie", "jaclyn", "kaitlin"],
None,
PropertyLimitType.characters,
12,
17, # laurie%2Cjaclyn%2C == 18, so this will create separate chunks
[["laurie"], ["jaclyn"], ["kaitlin"]],
id="test_property_chunking_includes_extra_delimiter",
),
Expand Down
Loading