mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 02:22:21 +00:00
Changed CalendarStore put_object interface
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
use rstest::rstest;
|
||||
use rstest_reuse::{self, apply, template};
|
||||
use rustical_store::sqlite_store::create_test_store;
|
||||
use rustical_store::CalendarStore;
|
||||
use rustical_store::{model::CalendarObject, CalendarStore};
|
||||
|
||||
const TIMEZONE: &str = include_str!("examples/timezone.ics");
|
||||
const EVENT: &str = include_str!("examples/event.ics");
|
||||
@@ -36,13 +36,9 @@ async fn test_create_event<CS: CalendarStore>(mut store: CS) {
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
let object = CalendarObject::from_ics("asd".to_owned(), EVENT.to_owned()).unwrap();
|
||||
store
|
||||
.put_object(
|
||||
"testuser".to_owned(),
|
||||
"test".to_owned(),
|
||||
"asd".to_owned(),
|
||||
EVENT.to_owned(),
|
||||
)
|
||||
.put_object("testuser".to_owned(), "test".to_owned(), object)
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user