mirror of
https://github.com/amtoaer/bili-sync.git
synced 2026-09-07 00:17:24 +08:00
test: 修复单元测试
This commit is contained in:
+5
-1
@@ -459,6 +459,10 @@ mod tests {
|
|||||||
name: "name".to_string(),
|
name: "name".to_string(),
|
||||||
upper_id: 1,
|
upper_id: 1,
|
||||||
upper_name: "upper_name".to_string(),
|
upper_name: "upper_name".to_string(),
|
||||||
|
favtime: chrono::NaiveDateTime::new(
|
||||||
|
chrono::NaiveDate::from_ymd_opt(2022, 2, 2).unwrap(),
|
||||||
|
chrono::NaiveTime::from_hms_opt(2, 2, 2).unwrap(),
|
||||||
|
),
|
||||||
pubtime: chrono::NaiveDateTime::new(
|
pubtime: chrono::NaiveDateTime::new(
|
||||||
chrono::NaiveDate::from_ymd_opt(2022, 2, 2).unwrap(),
|
chrono::NaiveDate::from_ymd_opt(2022, 2, 2).unwrap(),
|
||||||
chrono::NaiveTime::from_hms_opt(2, 2, 2).unwrap(),
|
chrono::NaiveTime::from_hms_opt(2, 2, 2).unwrap(),
|
||||||
@@ -519,7 +523,7 @@ mod tests {
|
|||||||
<plot/>
|
<plot/>
|
||||||
<outline/>
|
<outline/>
|
||||||
<lockdata>false</lockdata>
|
<lockdata>false</lockdata>
|
||||||
<dateadded>2022-02-02</dateadded>
|
<dateadded>2022-02-02 02:02:02</dateadded>
|
||||||
<title>1</title>
|
<title>1</title>
|
||||||
<sorttitle>1</sorttitle>
|
<sorttitle>1</sorttitle>
|
||||||
</person>"#,
|
</person>"#,
|
||||||
|
|||||||
Reference in New Issue
Block a user