def test_teams_get_team_info_with_no_team_info(self): # Arrange activity = Activity(channel_data={"eventType": "eventType"}) # Act result = teams_get_team_info(activity) # Assert assert result is None
def test_teams_get_team_info_with_no_channel_data(self): # Arrange activity = Activity(type="type") # Act result = teams_get_team_info(activity) # Assert assert result is None
def test_teams_get_team_info_with_none_activity(self): # Arrange activity = None # Act result = teams_get_team_info(activity) # Assert assert result is None
def test_teams_get_team_info(self): # Arrange activity = Activity( channel_data={"team": {"id": "id123", "name": "channel_name"}} ) # Act result = teams_get_team_info(activity) # Assert assert result == TeamInfo(id="id123", name="channel_name")
def test_teams_get_team_info(self): # Arrange activity = Activity( channel_data={"team": { "aadGroupId": "teamGroup123" }}) # Act team_info = teams_get_team_info(activity) # Assert assert team_info.aad_group_id == "teamGroup123"