multipart form was a bad idea

This commit is contained in:
realaravinth
2021-06-28 19:58:01 +05:30
parent cc17f2048f
commit 6cd477e227
4 changed files with 4 additions and 86 deletions

View File

@@ -89,21 +89,6 @@ async fn auth_works() {
)
.await;
let resp = test::call_service(
&mut app,
post_request!(&creds, PAGES.auth.login).to_request(),
)
.await;
assert_eq!(resp.status(), StatusCode::NOT_FOUND);
creds.username = NAME.into();
let resp = test::call_service(
&mut app,
post_request!(&creds, PAGES.auth.login).to_request(),
)
.await;
assert_eq!(resp.status(), StatusCode::OK);
// 4. trying to signin with wrong password
creds.username = NAME.into();
creds.password = NAME.into();