mirror of
https://github.com/danbulant/Portfolio
synced 2026-07-06 19:40:49 +00:00
fix: api tests
This commit is contained in:
parent
77539cdfc7
commit
bed44a6326
2 changed files with 9 additions and 9 deletions
|
|
@ -202,7 +202,7 @@ pub mod tests {
|
||||||
.post("/admin/login")
|
.post("/admin/login")
|
||||||
.body(format!(
|
.body(format!(
|
||||||
"{{
|
"{{
|
||||||
\"admin_id\": {},
|
\"adminId\": {},
|
||||||
\"password\": \"{}\"
|
\"password\": \"{}\"
|
||||||
}}",
|
}}",
|
||||||
ADMIN_ID, ADMIN_PASSWORD
|
ADMIN_ID, ADMIN_PASSWORD
|
||||||
|
|
@ -226,8 +226,8 @@ pub mod tests {
|
||||||
.post("/admin/create")
|
.post("/admin/create")
|
||||||
.body(format!(
|
.body(format!(
|
||||||
"{{
|
"{{
|
||||||
\"application_id\": {},
|
\"applicationId\": {},
|
||||||
\"personal_id_number\": \"{}\"
|
\"personalIdNumber\": \"{}\"
|
||||||
}}",
|
}}",
|
||||||
id, pid
|
id, pid
|
||||||
))
|
))
|
||||||
|
|
|
||||||
|
|
@ -277,7 +277,7 @@ mod tests {
|
||||||
.post("/candidate/login")
|
.post("/candidate/login")
|
||||||
.body(format!(
|
.body(format!(
|
||||||
"{{
|
"{{
|
||||||
\"application_id\": {},
|
\"applicationId\": {},
|
||||||
\"password\": \"{}\"
|
\"password\": \"{}\"
|
||||||
}}",
|
}}",
|
||||||
APPLICATION_ID, CANDIDATE_PASSWORD
|
APPLICATION_ID, CANDIDATE_PASSWORD
|
||||||
|
|
@ -300,12 +300,12 @@ mod tests {
|
||||||
\"citizenship\": \"Czech Republic\",
|
\"citizenship\": \"Czech Republic\",
|
||||||
\"email\": \"magor@magor.cz\",
|
\"email\": \"magor@magor.cz\",
|
||||||
\"sex\": \"MALE\",
|
\"sex\": \"MALE\",
|
||||||
\"personal_id_number\": \"0000000000\",
|
\"personalIdNumber\": \"0000000000\",
|
||||||
\"study\": \"KB\",
|
\"study\": \"KB\",
|
||||||
\"parent_name\": \"maminka\",
|
\"parentName\": \"maminka\",
|
||||||
\"parent_surname\": \"chad\",
|
\"parentSurname\": \"chad\",
|
||||||
\"parent_telephone\": \"420111222333\",
|
\"parentTelephone\": \"420111222333\",
|
||||||
\"parent_email\": \"maminka@centrum.cz\"
|
\"parentEmail\": \"maminka@centrum.cz\"
|
||||||
}";
|
}";
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue