Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(grammar): Change error message to have correct grammar #3766

Merged
merged 1 commit into from
Feb 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ class AccessionPreconditionValidator(

if (sequenceEntriesNotInStatuses.isNotEmpty()) {
throw UnprocessableEntityException(
"Accession versions are in not in one of the states $statuses: " +
"Accession versions are not in one of the states $statuses: " +
sequenceEntriesNotInStatuses.joinToString(", "),
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class SeqSetValidationEndpointsTest(
jsonPath(
"\$.detail",
containsString(
"Accession versions are in not in one of the states [APPROVED_FOR_RELEASE]",
"Accession versions are not in one of the states [APPROVED_FOR_RELEASE]",
),
),
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ class ApproveProcessedDataEndpointTest(
jsonPath(
"$.detail",
containsString(
"Accession versions are in not in one of the states " +
"Accession versions are not in one of the states " +
"[$PROCESSED]: " +
"${accessionVersionNotInCorrectState.first().displayAccessionVersion()} - $IN_PROCESSING",
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class DeleteSequencesEndpointTest(
)

val listOfAllowedStatuses = "[${Status.RECEIVED}, ${Status.PROCESSED}]"
val errorString = "Accession versions are in not in one of the states $listOfAllowedStatuses: " +
val errorString = "Accession versions are not in one of the states $listOfAllowedStatuses: " +
accessionVersionsToDelete.sortedWith(AccessionVersionComparator).joinToString(", ") {
"${it.accession}.${it.version} - ${it.status}"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ class ReviseEndpointTest(
jsonPath(
"\$.detail",
containsString(
"Accession versions are in not in one of the states [APPROVED_FOR_RELEASE]: " +
"Accession versions are not in one of the states [APPROVED_FOR_RELEASE]: " +
"${accessions.first()}.1 - PROCESSED,",
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class RevokeEndpointTest(
jsonPath(
"\$.detail",
containsString(
"Accession versions are in not in one of the states [${Status.APPROVED_FOR_RELEASE}]: " +
"Accession versions are not in one of the states [${Status.APPROVED_FOR_RELEASE}]: " +
"${accessions.first()}.1 - ${Status.PROCESSED},",
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class SubmitExternalMetadataEndpointTest(
.value(
containsString(
(
"Accession versions are in not in one of the states " +
"Accession versions are not in one of the states " +
"[APPROVED_FOR_RELEASE]: $accession"
),
),
Expand Down
Loading