10 lines
270 B
Rust
10 lines
270 B
Rust
//! Shared test utilities for HTTP handler tests.
|
|
|
|
use crate::http::context::AppContext;
|
|
use std::path::Path;
|
|
|
|
/// Build an [`AppContext`] rooted at `dir` for use in tests.
|
|
pub(crate) fn test_ctx(dir: &Path) -> AppContext {
|
|
AppContext::new_test(dir.to_path_buf())
|
|
}
|