Use ChatFullInfo::default() in gieaway, message_reaction and chat_boost tests

This commit is contained in:
Andrey Brusnik 2024-07-19 22:43:22 +04:00
parent b78dac4ee5
commit 664717e07d
No known key found for this signature in database
GPG key ID: D33232F28CFF442C
2 changed files with 8 additions and 8 deletions

View file

@ -2390,7 +2390,7 @@ mod tests {
message_auto_delete_time: None,
has_hidden_members: false,
has_aggressive_anti_spam_enabled: false,
chat_full_info: ChatFullInfo { emoji_status_expiration_date: None }
chat_full_info: ChatFullInfo::default()
}],
winners_selection_date: DateTime::from_timestamp(1721162701, 0).unwrap(),
winner_count: 1,
@ -2499,7 +2499,7 @@ mod tests {
message_auto_delete_time: None,
has_hidden_members: false,
has_aggressive_anti_spam_enabled: false,
chat_full_info: ChatFullInfo { emoji_status_expiration_date: None }
chat_full_info: ChatFullInfo::default()
},
via_bot: None,
kind: MessageKind::Giveaway(MessageGiveaway {
@ -2522,7 +2522,7 @@ mod tests {
message_auto_delete_time: None,
has_hidden_members: false,
has_aggressive_anti_spam_enabled: false,
chat_full_info: ChatFullInfo { emoji_status_expiration_date: None }
chat_full_info: ChatFullInfo::default()
}],
winners_selection_date: DateTime::from_timestamp(1721162701, 0)
.unwrap(),
@ -2623,7 +2623,7 @@ mod tests {
message_auto_delete_time: None,
has_hidden_members: false,
has_aggressive_anti_spam_enabled: false,
chat_full_info: ChatFullInfo { emoji_status_expiration_date: None }
chat_full_info: ChatFullInfo::default()
},
giveaway_message_id: MessageId(27),
winners_selection_date: DateTime::from_timestamp(1721162701, 0).unwrap(),

View file

@ -882,7 +882,7 @@ mod test {
message_auto_delete_time: None,
has_hidden_members: false,
has_aggressive_anti_spam_enabled: false,
chat_full_info: ChatFullInfo { emoji_status_expiration_date: None },
chat_full_info: ChatFullInfo::default(),
},
message_id: MessageId(35),
user: Some(User {
@ -962,7 +962,7 @@ mod test {
message_auto_delete_time: None,
has_hidden_members: false,
has_aggressive_anti_spam_enabled: false,
chat_full_info: ChatFullInfo { emoji_status_expiration_date: None },
chat_full_info: ChatFullInfo::default(),
},
message_id: MessageId(36),
date: DateTime::from_timestamp(1721306391, 0).unwrap(),
@ -1039,7 +1039,7 @@ mod test {
message_auto_delete_time: None,
has_hidden_members: false,
has_aggressive_anti_spam_enabled: false,
chat_full_info: ChatFullInfo { emoji_status_expiration_date: None },
chat_full_info: ChatFullInfo::default(),
},
boost: ChatBoost {
boost_id: "4506e1b7e866e33fcbde78fe1746ec3a".to_owned(),
@ -1116,7 +1116,7 @@ mod test {
message_auto_delete_time: None,
has_hidden_members: false,
has_aggressive_anti_spam_enabled: false,
chat_full_info: ChatFullInfo { emoji_status_expiration_date: None },
chat_full_info: ChatFullInfo::default(),
},
boost_id: "4506e1b7e866e33fcbde78fe1746ec3a".to_owned(),
remove_date: DateTime::from_timestamp(1721999621, 0).unwrap(),