Skip to content

Commit

Permalink
Merge pull request #319 from DariaDunina/master
Browse files Browse the repository at this point in the history
test 262 done
  • Loading branch information
LukasForst authored Jun 15, 2021
2 parents 6c465a3 + be67f18 commit f1535e1
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,12 @@ class PatientRoutesTest : ServerTestBase() {
assertTrue { patients.isEmpty() }
}

// TODO #262 implement this - check that the patient was indeed deleted
// call endpoint with patient ID and check that the response is 404 - Not Found
// hint - see and try to understand what we're doing in the previous lines
// the patient is no longer in db
handleRequest(HttpMethod.Get, "${Routes.adminSectionPatient}/$patientId") {
authorize()
}.run {
expectStatus(HttpStatusCode.NotFound)
}
}


Expand Down

0 comments on commit f1535e1

Please sign in to comment.