changes tests to a macro (#822)

This commit is contained in:
Wyatt Verchere authored and GitHub committed 2024-01-06 14:08:03 -05:00
1 parent 10eed05d87
commit 87862f3e23
32 files changed
+423 -391

No files matched your search

+1 -1
View File
@@ -15,7 +15,7 @@ pub async fn extract_ok_json<T>(response: HttpResponse) -> Result<T, HttpRespons
where
T: serde::de::DeserializeOwned,
{
// If the response is OK, parse the json and return it
// If the response is StatusCode::OK, parse the json and return it
if response.status() == actix_web::http::StatusCode::OK {
let failure_http_response = || {
HttpResponse::InternalServerError().json(json!({