Score tests, and get_datetime test-util
This commit is contained in:
parent
e353977da9
commit
91229287a8
3 changed files with 246 additions and 19 deletions
|
|
@ -93,9 +93,9 @@ mod tests {
|
|||
use super::*;
|
||||
use crate::test_utils::{
|
||||
ITEM_TITLE, ITEM_GUID, ITEM_GUID2, ITEM_DESC, ITEM_CONT,
|
||||
CHANNEL_TITLE, CHANNEL_DESC, FEED1
|
||||
CHANNEL_TITLE, CHANNEL_DESC, FEED1,
|
||||
get_datetime
|
||||
};
|
||||
use chrono::TimeZone;
|
||||
|
||||
fn create_guid(value: String) -> rss::Guid {
|
||||
rss::Guid { value, permalink: false }
|
||||
|
|
@ -140,7 +140,7 @@ mod tests {
|
|||
|
||||
let rss_channel = create_channel([rss_item, rss_item2].to_vec());
|
||||
|
||||
let date: DateTime<Utc> = Utc.with_ymd_and_hms(2020,1,1,0,0,0).unwrap();
|
||||
let date: DateTime<Utc> = get_datetime();
|
||||
|
||||
let channel = FetchedRSSChannel::parse(rss_channel, date).unwrap();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue