Update tests and localization
This commit is contained in:
parent
bbc5936da6
commit
8469728bb5
@ -121,29 +121,17 @@
|
|||||||
"title": "Statements without references.",
|
"title": "Statements without references.",
|
||||||
"body": "Most statements should have references. You can add them easily in the schema."
|
"body": "Most statements should have references. You can add them easily in the schema."
|
||||||
},
|
},
|
||||||
"property-restricted-to-reference-found-in-mainsnak": {
|
"property-found-in-mainsnak": {
|
||||||
"title": "{property_entity} used as statement.",
|
"title": "{property_entity} used as statement.",
|
||||||
"body": "You are using {property_entity} in a statement but it is designed to be used in references only."
|
"body": "You are using {property_entity} as a main statement but it is not designed for that."
|
||||||
},
|
},
|
||||||
"property-restricted-to-reference-found-in-qualifier": {
|
"property-found-in-qualifier": {
|
||||||
"title": "{property_entity} used as qualifier.",
|
"title": "{property_entity} used as qualifier.",
|
||||||
"body": "You are using in {property_entity} in a qualifier but it is designed to be used in references only."
|
"body": "You are using in {property_entity} as a qualifier but it is not designed for that ."
|
||||||
},
|
},
|
||||||
"property-restricted-to-qualifier-found-in-mainsnak": {
|
"property-found-in-reference": {
|
||||||
"title": "{property_entity} used as statement.",
|
|
||||||
"body": "You are using {property_entity} in a statement but it is designed to be used in qualifiers only."
|
|
||||||
},
|
|
||||||
"property-restricted-to-qualifier-found-in-reference": {
|
|
||||||
"title": "{property_entity} used as reference.",
|
"title": "{property_entity} used as reference.",
|
||||||
"body": "You are using {property_entity} in a reference but it is designed to be used in qualifiers only."
|
"body": "You are using {property_entity} in a reference but it is not designed for that."
|
||||||
},
|
|
||||||
"property-restricted-to-mainsnak-found-in-qualifier": {
|
|
||||||
"title": "{property_entity} used as qualifier.",
|
|
||||||
"body": "You are using {property_entity} in a qualifier but it is designed to be used as a statement only."
|
|
||||||
},
|
|
||||||
"property-restricted-to-mainsnak-found-in-reference": {
|
|
||||||
"title": "{property_entity} used as reference.",
|
|
||||||
"body": "You are using {property_entity} in a reference but it is designed to be used as a statement only."
|
|
||||||
},
|
},
|
||||||
"missing-mandatory-qualifiers": {
|
"missing-mandatory-qualifiers": {
|
||||||
"title": "{statement_property_entity} is missing a {missing_property_entity} qualifier.",
|
"title": "{statement_property_entity} is missing a {missing_property_entity} qualifier.",
|
||||||
|
@ -48,7 +48,7 @@ public class RestrictedPositionScrutinizerTest extends SnakScrutinizerTest {
|
|||||||
@Test
|
@Test
|
||||||
public void testTriggerMainSnak() {
|
public void testTriggerMainSnak() {
|
||||||
scrutinize(TestingData.generateStatement(qid, MockConstraintFetcher.qualifierPid, qid));
|
scrutinize(TestingData.generateStatement(qid, MockConstraintFetcher.qualifierPid, qid));
|
||||||
assertWarningsRaised("property-restricted-to-qualifier-found-in-mainsnak");
|
assertWarningsRaised("property-found-in-mainsnak");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@ -72,7 +72,7 @@ public class RestrictedPositionScrutinizerTest extends SnakScrutinizerTest {
|
|||||||
TestingData.generateStatement(qid, MockConstraintFetcher.mainSnakPid, qid).getClaim(),
|
TestingData.generateStatement(qid, MockConstraintFetcher.mainSnakPid, qid).getClaim(),
|
||||||
Collections.singletonList(Datamodel.makeReference(snakGroups)), StatementRank.NORMAL, "");
|
Collections.singletonList(Datamodel.makeReference(snakGroups)), StatementRank.NORMAL, "");
|
||||||
scrutinize(statement);
|
scrutinize(statement);
|
||||||
assertWarningsRaised("property-restricted-to-mainsnak-found-in-reference");
|
assertWarningsRaised("property-found-in-reference");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user