File tree Expand file tree Collapse file tree
tests/protocols/gmpnext/entities/agents Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -309,7 +309,7 @@ def sync_agents(self) -> T:
309309 def get_agent_support_bundle (
310310 self ,
311311 agent_id : EntityID ,
312- days : int | None = None ,
312+ days : int = 0 ,
313313 ) -> T :
314314 """Request a support bundle for an agent.
315315
Original file line number Diff line number Diff line change @@ -437,7 +437,7 @@ def get_agent_support_bundle(
437437 cls ,
438438 agent_id : EntityID ,
439439 * ,
440- days : int | None = None ,
440+ days : int = 0 ,
441441 ) -> Request :
442442 """Request a support bundle for an agent.
443443
@@ -456,9 +456,6 @@ def get_agent_support_bundle(
456456 argument = "agent_id" ,
457457 )
458458
459- if days is None :
460- days = 0
461-
462459 if days < 0 :
463460 raise ValueError ("days must be greater than or equal to zero" )
464461
Original file line number Diff line number Diff line change @@ -25,16 +25,6 @@ def test_get_agent_support_bundle_without_days_uses_zero(self):
2525 b'<get_agent_support_bundle agent_uuid="agent-123" days="0"/>'
2626 )
2727
28- def test_get_agent_support_bundle_with_none_days_uses_zero (self ):
29- self .gmp .get_agent_support_bundle (
30- agent_id = "agent-123" ,
31- days = None ,
32- )
33-
34- self .connection .send .has_been_called_with (
35- b'<get_agent_support_bundle agent_uuid="agent-123" days="0"/>'
36- )
37-
3828 def test_get_agent_support_bundle_with_zero_days (self ):
3929 self .gmp .get_agent_support_bundle (
4030 agent_id = "agent-123" ,
You can’t perform that action at this time.
0 commit comments