mirror of
https://github.com/danbulant/Portfolio
synced 2026-06-18 22:11:14 +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")
|
||||
.body(format!(
|
||||
"{{
|
||||
\"admin_id\": {},
|
||||
\"adminId\": {},
|
||||
\"password\": \"{}\"
|
||||
}}",
|
||||
ADMIN_ID, ADMIN_PASSWORD
|
||||
|
|
@ -226,8 +226,8 @@ pub mod tests {
|
|||
.post("/admin/create")
|
||||
.body(format!(
|
||||
"{{
|
||||
\"application_id\": {},
|
||||
\"personal_id_number\": \"{}\"
|
||||
\"applicationId\": {},
|
||||
\"personalIdNumber\": \"{}\"
|
||||
}}",
|
||||
id, pid
|
||||
))
|
||||
|
|
|
|||
|
|
@ -277,7 +277,7 @@ mod tests {
|
|||
.post("/candidate/login")
|
||||
.body(format!(
|
||||
"{{
|
||||
\"application_id\": {},
|
||||
\"applicationId\": {},
|
||||
\"password\": \"{}\"
|
||||
}}",
|
||||
APPLICATION_ID, CANDIDATE_PASSWORD
|
||||
|
|
@ -300,12 +300,12 @@ mod tests {
|
|||
\"citizenship\": \"Czech Republic\",
|
||||
\"email\": \"magor@magor.cz\",
|
||||
\"sex\": \"MALE\",
|
||||
\"personal_id_number\": \"0000000000\",
|
||||
\"personalIdNumber\": \"0000000000\",
|
||||
\"study\": \"KB\",
|
||||
\"parent_name\": \"maminka\",
|
||||
\"parent_surname\": \"chad\",
|
||||
\"parent_telephone\": \"420111222333\",
|
||||
\"parent_email\": \"maminka@centrum.cz\"
|
||||
\"parentName\": \"maminka\",
|
||||
\"parentSurname\": \"chad\",
|
||||
\"parentTelephone\": \"420111222333\",
|
||||
\"parentEmail\": \"maminka@centrum.cz\"
|
||||
}";
|
||||
|
||||
#[test]
|
||||
|
|
|
|||
Loading…
Reference in a new issue