15 lines
390 B
Rust
15 lines
390 B
Rust
use sqlx::PgPool;
|
|
|
|
#[sqlx::test]
|
|
async fn swagger_ui_returns_200_ok(pool: PgPool) {
|
|
let app = crate::helpers::TestApp::spawn(&pool).await;
|
|
let client = reqwest::Client::new();
|
|
let url = app.url("/swagger-ui");
|
|
let response = client
|
|
.get(url)
|
|
.send()
|
|
.await
|
|
.expect("Failed to execute request");
|
|
assert!(response.status().is_success());
|
|
}
|