()
| 132 | |
| 133 | #[tokio::test] |
| 134 | async fn oauth_code() { |
| 135 | let prov = mock::AuthProvider::new(); |
| 136 | let cfg = configuration(&prov); |
| 137 | let app = create_app(&cfg); |
| 138 | |
| 139 | let response = app |
| 140 | .oneshot( |
| 141 | Request::builder() |
| 142 | .uri("/oauth?code=200") |
| 143 | .body(Body::empty()) |
| 144 | .unwrap(), |
| 145 | ) |
| 146 | .await |
| 147 | .unwrap(); |
| 148 | |
| 149 | assert_eq!(response.status(), StatusCode::OK); |
| 150 | } |
| 151 | |
| 152 | #[tokio::test] |
| 153 | async fn data_returns_expected_result() { |
nothing calls this directly
no test coverage detected