mirror of
https://github.com/lennart-k/rustical.git
synced 2026-01-30 12:58:28 +00:00
Tests: Fix scope of store
This commit is contained in:
@@ -4,16 +4,17 @@ use axum::extract::Request;
|
||||
use headers::{Authorization, HeaderMapExt};
|
||||
use http::StatusCode;
|
||||
use rstest::rstest;
|
||||
use rustical_store_sqlite::tests::{TestStoreContext, test_store_context};
|
||||
use tower::ServiceExt;
|
||||
|
||||
#[rstest]
|
||||
#[tokio::test]
|
||||
async fn test_carddav_root(
|
||||
#[from(get_app)]
|
||||
#[from(test_store_context)]
|
||||
#[future]
|
||||
app: axum::Router,
|
||||
context: TestStoreContext,
|
||||
) {
|
||||
let app = app.await;
|
||||
let app = get_app(context.await);
|
||||
|
||||
let request_template = || {
|
||||
Request::builder()
|
||||
|
||||
Reference in New Issue
Block a user