fix: api tests

This commit is contained in:
Sebastian Pravda 2022-12-02 10:50:05 +01:00
parent 77539cdfc7
commit bed44a6326
No known key found for this signature in database
GPG key ID: F3BC84F08EFA3F57
2 changed files with 9 additions and 9 deletions

View file

@ -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
)) ))

View file

@ -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]