mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 08:12:24 +00:00
Change upsert_event to put_event to match webdav spec
This commit is contained in:
@@ -2,14 +2,12 @@ use rstest::rstest;
|
||||
use rstest_reuse::{self, apply, template};
|
||||
use rustical_store::sqlite_store::create_test_store;
|
||||
use rustical_store::store::CalendarStore;
|
||||
use rustical_store::toml_store::TomlCalendarStore;
|
||||
|
||||
const TIMEZONE: &str = include_str!("examples/timezone.ics");
|
||||
const EVENT: &str = include_str!("examples/event.ics");
|
||||
|
||||
#[template]
|
||||
#[rstest]
|
||||
#[case::toml(async {TomlCalendarStore::test()})]
|
||||
#[case::sqlite(async {create_test_store().await.unwrap() })]
|
||||
async fn cal_store<CS: CalendarStore>(
|
||||
#[future(awt)]
|
||||
@@ -43,7 +41,7 @@ async fn test_create_event<CS: CalendarStore>(store: CS) {
|
||||
.unwrap();
|
||||
|
||||
store
|
||||
.upsert_event("test".to_owned(), "asd".to_owned(), EVENT.to_owned())
|
||||
.put_event("test".to_owned(), "asd".to_owned(), EVENT.to_owned())
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user