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
3 changes: 2 additions & 1 deletion src/adcp/media_buy_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1305,7 +1305,8 @@ def _supports_change_term_id(version: str) -> bool:
beta = int(match.group(3)) if match.group(3) is not None else None
if (major, minor) < (3, 2):
return False
return beta is None or beta >= 9
# change_term_id landed in 3.2.0-beta.9; later lines carry it in every prerelease.
return (major, minor) > (3, 2) or beta is None or beta >= 9


def _supports_action_task(version: str) -> bool:
Expand Down
11 changes: 11 additions & 0 deletions tests/test_media_buy_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,17 @@ def test_resolved_condition_allows_seller_managed_standard_async_action() -> Non
"change_term_id": "right_increase",
},
),
(
# The 3.2 beta.9 floor does not apply to 3.3 prereleases.
"3.3.0-beta.1",
{
"action": "increase_budget",
"mode": "seller_managed",
"task": "control_media_buy",
"sla": {"response_max": "PT30M"},
"change_term_id": "right_increase",
},
),
],
)
def test_projection_version_matrix(version: str, expected: dict[str, Any]) -> None:
Expand Down
Loading