fix update system

This commit is contained in:
qdequele
2020-01-22 14:29:39 +01:00
parent 58fe87067b
commit f77f38dfa0
6 changed files with 50 additions and 40 deletions

View File

@ -381,9 +381,9 @@ mod tests {
let settings = {
let data = r#"
{
"attribute_identifier": "id",
"attributes_searchable": ["name", "description"],
"attributes_displayed": ["name", "description"]
"attributeIdentifier": "id",
"attributesSearchable": ["name", "description"],
"attributesDisplayed": ["name", "description"]
}
"#;
let settings: Settings = serde_json::from_str(data).unwrap();
@ -441,9 +441,9 @@ mod tests {
let settings = {
let data = r#"
{
"attribute_identifier": "id",
"attributes_searchable": ["name", "description"],
"attributes_displayed": ["name", "description"]
"attributeIdentifier": "id",
"attributesSearchable": ["name", "description"],
"attributesDisplayed": ["name", "description"]
}
"#;
let settings: Settings = serde_json::from_str(data).unwrap();
@ -500,9 +500,9 @@ mod tests {
let settings = {
let data = r#"
{
"attribute_identifier": "id",
"attributes_searchable": ["name"],
"attributes_displayed": ["name"]
"attributeIdentifier": "id",
"attributesSearchable": ["name"],
"attributesDisplayed": ["name"]
}
"#;
let settings: Settings = serde_json::from_str(data).unwrap();
@ -552,9 +552,9 @@ mod tests {
let settings = {
let data = r#"
{
"attribute_identifier": "id",
"attributes_searchable": ["name", "description"],
"attributes_displayed": ["name", "description"]
"attributeIdentifier": "id",
"attributesSearchable": ["name", "description"],
"attributesDisplayed": ["name", "description"]
}
"#;
let settings: Settings = serde_json::from_str(data).unwrap();
@ -590,9 +590,9 @@ mod tests {
let settings = {
let data = r#"
{
"attribute_identifier": "id",
"attributes_searchable": ["name", "description", "age", "sex"],
"attributes_displayed": ["name", "description", "age", "sex"]
"attributeIdentifier": "id",
"attributesSearchable": ["name", "description", "age", "sex"],
"attributesDisplayed": ["name", "description", "age", "sex"]
}
"#;
let settings: Settings = serde_json::from_str(data).unwrap();
@ -657,9 +657,9 @@ mod tests {
let settings = {
let data = r#"
{
"attribute_identifier": "id",
"attributes_searchable": ["name", "description", "city", "age", "sex"],
"attributes_displayed": ["name", "description", "city", "age", "sex"]
"attributeIdentifier": "id",
"attributesSearchable": ["name", "description", "city", "age", "sex"],
"attributesDisplayed": ["name", "description", "city", "age", "sex"]
}
"#;
let settings: Settings = serde_json::from_str(data).unwrap();
@ -696,9 +696,9 @@ mod tests {
let settings = {
let data = r#"
{
"attribute_identifier": "id",
"attributes_searchable": ["name", "description"],
"attributes_displayed": ["name", "description"]
"attributeIdentifier": "id",
"attributesSearchable": ["name", "description"],
"attributesDisplayed": ["name", "description"]
}
"#;
let settings: Settings = serde_json::from_str(data).unwrap();
@ -773,9 +773,9 @@ mod tests {
let settings = {
let data = r#"
{
"attribute_identifier": "id",
"attributes_searchable": ["name", "description"],
"attributes_displayed": ["name", "description", "id"]
"attributeIdentifier": "id",
"attributesSearchable": ["name", "description"],
"attributesDisplayed": ["name", "description", "id"]
}
"#;
let settings: Settings = serde_json::from_str(data).unwrap();
@ -909,9 +909,9 @@ mod tests {
let settings = {
let data = r#"
{
"attribute_identifier": "id",
"attributes_searchable": ["name", "description"],
"attributes_displayed": ["name", "description"]
"attributeIdentifier": "id",
"attributesSearchable": ["name", "description"],
"attributesDisplayed": ["name", "description"]
}
"#;
let settings: Settings = serde_json::from_str(data).unwrap();
@ -973,7 +973,7 @@ mod tests {
let settings = {
let data = r#"
{
"ranking_rules": [
"rankingRules": [
"_typo",
"_words",
"_proximity",
@ -982,9 +982,9 @@ mod tests {
"_exact",
"dsc(release_date)"
],
"attribute_identifier": "id",
"attributes_searchable": ["name", "release_date"],
"attributes_displayed": ["name", "release_date"]
"attributeIdentifier": "id",
"attributesSearchable": ["name", "release_date"],
"attributesDisplayed": ["name", "release_date"]
}
"#;
let settings: Settings = serde_json::from_str(data).unwrap();