diff --git a/tests/data/choice1_requires.json b/tests/data/choice1_requires.json index 4c2934f..ec29c34 100644 --- a/tests/data/choice1_requires.json +++ b/tests/data/choice1_requires.json @@ -1 +1 @@ -{"schema": {"options": {"properties": {"options.choice": {"type": "choice", "enum": ["hide", "show"], "value": "hide", "title": "Choice description"}, "options.unicode2": {"type": "string", "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.choice": {"required": true, "value": "hide", "owner": "default"}, "options.unicode2": {"display": false, "hidden": true}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"options.choice": {"clearable": true, "type": "choice", "dependencies": {"default": {"show": ["options.unicode2"]}, "expected": {"show": {"show": ["options.unicode2"]}, "hide": {"hide": ["options.unicode2"]}}}}, "options.unicode2": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file +{"schema": {"options": {"properties": {"options.choice": {"type": "choice", "enum": ["hide", "show"], "value": "hide", "title": "Choice description"}, "options.unicode2": {"type": "string", "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.choice": {"required": true, "value": "hide"}, "options.unicode2": {"display": false, "hidden": true}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"options.choice": {"clearable": true, "type": "choice", "dependencies": {"default": {"show": ["options.unicode2"]}, "expected": {"show": {"show": ["options.unicode2"]}, "hide": {"hide": ["options.unicode2"]}}}}, "options.unicode2": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/tests/data/number1_value.json b/tests/data/number1_value.json index aee2ab9..6e289bb 100644 --- a/tests/data/number1_value.json +++ b/tests/data/number1_value.json @@ -1 +1 @@ -{"schema": {"options": {"properties": {"options.integer": {"type": "integer", "value": 0, "title": "integer 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.integer": {"value": 0, "owner": "default"}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"options.integer": {"clearable": true, "pattern": "^[0-9]+$", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file +{"schema": {"options": {"properties": {"options.integer": {"type": "integer", "value": 0, "title": "integer 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.integer": {"value": 0}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"options.integer": {"clearable": true, "pattern": "^[0-9]+$", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/tests/data/subconfig_choice1_requires.json b/tests/data/subconfig_choice1_requires.json index ebfde26..8977bea 100644 --- a/tests/data/subconfig_choice1_requires.json +++ b/tests/data/subconfig_choice1_requires.json @@ -1 +1 @@ -{"schema": {"choice1_requires.options": {"properties": {"choice1_requires.options.choice": {"type": "choice", "enum": ["hide", "show"], "value": "hide", "title": "Choice description"}, "choice1_requires.options.unicode2": {"type": "string", "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": {"choice1_requires.options.choice": {"required": true, "value": "hide", "owner": "default"}, "choice1_requires.options.unicode2": {"display": false, "hidden": true}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"choice1_requires.options.choice": {"clearable": true, "type": "choice", "dependencies": {"default": {"show": ["choice1_requires.options.unicode2"]}, "expected": {"show": {"show": ["choice1_requires.options.unicode2"]}, "hide": {"hide": ["choice1_requires.options.unicode2"]}}}}, "choice1_requires.options.unicode2": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file +{"schema": {"choice1_requires.options": {"properties": {"choice1_requires.options.choice": {"type": "choice", "enum": ["hide", "show"], "value": "hide", "title": "Choice description"}, "choice1_requires.options.unicode2": {"type": "string", "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": {"choice1_requires.options.choice": {"required": true, "value": "hide"}, "choice1_requires.options.unicode2": {"display": false, "hidden": true}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"choice1_requires.options.choice": {"clearable": true, "type": "choice", "dependencies": {"default": {"show": ["choice1_requires.options.unicode2"]}, "expected": {"show": {"show": ["choice1_requires.options.unicode2"]}, "hide": {"hide": ["choice1_requires.options.unicode2"]}}}}, "choice1_requires.options.unicode2": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/tests/data/subconfig_number1_value.json b/tests/data/subconfig_number1_value.json index 8a6666b..3aacf6b 100644 --- a/tests/data/subconfig_number1_value.json +++ b/tests/data/subconfig_number1_value.json @@ -1 +1 @@ -{"schema": {"number1_value.options": {"properties": {"number1_value.options.integer": {"type": "integer", "value": 0, "title": "integer 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"number1_value.options.integer": {"value": 0, "owner": "default"}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"number1_value.options.integer": {"clearable": true, "pattern": "^[0-9]+$", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file +{"schema": {"number1_value.options": {"properties": {"number1_value.options.integer": {"type": "integer", "value": 0, "title": "integer 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"number1_value.options.integer": {"value": 0}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"number1_value.options.integer": {"clearable": true, "pattern": "^[0-9]+$", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/tests/data/subconfig_unicode1_leadership_default_value.json b/tests/data/subconfig_unicode1_leadership_default_value.json index 65534e1..3848286 100644 --- a/tests/data/subconfig_unicode1_leadership_default_value.json +++ b/tests/data/subconfig_unicode1_leadership_default_value.json @@ -1 +1 @@ -{"schema": {"unicode1_leadership_default_value.options": {"properties": {"unicode1_leadership_default_value.options.unicode": {"properties": {"unicode1_leadership_default_value.options.unicode.unicode": {"type": "string", "isMulti": true, "value": ["val1", "val2"], "title": "Unicode leader"}, "unicode1_leadership_default_value.options.unicode.unicode1": {"type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership_default_value.options.unicode.unicode2": {"type": "string", "defaultmulti": "follower2", "isMulti": true, "title": "Unicode follower 2 with default multi"}, "unicode1_leadership_default_value.options.unicode.unicode3": {"type": "string", "isMulti": true, "title": "Unicode follower 3"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": {"unicode1_leadership_default_value.options.unicode.unicode": {"required": true, "value": ["val1", "val2"], "owner": "default"}, "unicode1_leadership_default_value.options.unicode.unicode2": {"0": {"value": "follower2", "owner": "default"}, "1": {"value": "follower2", "owner": "default"}}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"unicode1_leadership_default_value.options.unicode.unicode": {"clearable": true, "type": "input"}, "unicode1_leadership_default_value.options.unicode.unicode1": {"clearable": true, "type": "input"}, "unicode1_leadership_default_value.options.unicode.unicode2": {"clearable": true, "type": "input"}, "unicode1_leadership_default_value.options.unicode.unicode3": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file +{"schema": {"unicode1_leadership_default_value.options": {"properties": {"unicode1_leadership_default_value.options.unicode": {"properties": {"unicode1_leadership_default_value.options.unicode.unicode": {"type": "string", "isMulti": true, "value": ["val1", "val2"], "title": "Unicode leader"}, "unicode1_leadership_default_value.options.unicode.unicode1": {"type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership_default_value.options.unicode.unicode2": {"type": "string", "defaultmulti": "follower2", "isMulti": true, "title": "Unicode follower 2 with default multi"}, "unicode1_leadership_default_value.options.unicode.unicode3": {"type": "string", "isMulti": true, "title": "Unicode follower 3"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": {"unicode1_leadership_default_value.options.unicode.unicode": {"required": true, "value": ["val1", "val2"]}, "unicode1_leadership_default_value.options.unicode.unicode2": {"0": {"value": "follower2"}, "1": {"value": "follower2"}}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"unicode1_leadership_default_value.options.unicode.unicode": {"clearable": true, "type": "input"}, "unicode1_leadership_default_value.options.unicode.unicode1": {"clearable": true, "type": "input"}, "unicode1_leadership_default_value.options.unicode.unicode2": {"clearable": true, "type": "input"}, "unicode1_leadership_default_value.options.unicode.unicode3": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/tests/data/subconfig_unicode1_multi_not_equal_collapse.json b/tests/data/subconfig_unicode1_multi_not_equal_collapse.json index f7df02c..1ca88e7 100644 --- a/tests/data/subconfig_unicode1_multi_not_equal_collapse.json +++ b/tests/data/subconfig_unicode1_multi_not_equal_collapse.json @@ -1 +1 @@ -{"schema": {"unicode1_multi_not_equal_collapse.descr1": {"properties": {"unicode1_multi_not_equal_collapse.descr1.unicode1": {"type": "string", "title": "Unicode 1, not equal to 'a'"}, "unicode1_multi_not_equal_collapse.descr1.unicode1_multi": {"type": "string", "isMulti": true, "title": "Multi unicode 1, not equal to 'a' or 'b'"}}, "type": "object", "title": "Common configuration 1"}, "unicode1_multi_not_equal_collapse.descr2": {"properties": {"unicode1_multi_not_equal_collapse.descr2.unicode2": {"type": "string", "value": "a", "title": "Unicode 2"}, "unicode1_multi_not_equal_collapse.descr2.unicode2_multi": {"type": "string", "isMulti": true, "value": ["a", "b"], "title": "Multi unicode 2"}}, "type": "object", "title": "Common configuration 2"}, "unicode1_multi_not_equal_collapse.descr3": {"properties": {"unicode1_multi_not_equal_collapse.descr3.unicode3": {"type": "string", "title": "Unicode 3"}, "unicode1_multi_not_equal_collapse.descr3.unicode3_multi": {"type": "string", "isMulti": true, "title": "Multi unicode 3"}}, "type": "object", "title": "Common configuration 3"}}, "model": {"unicode1_multi_not_equal_collapse.descr1.unicode1_multi": {"required": true}, "unicode1_multi_not_equal_collapse.descr2.unicode2": {"value": "a", "owner": "default"}, "unicode1_multi_not_equal_collapse.descr2.unicode2_multi": {"required": true, "value": ["a", "b"], "owner": "default"}, "unicode1_multi_not_equal_collapse.descr3.unicode3_multi": {"required": true}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"unicode1_multi_not_equal_collapse.descr1.unicode1": {"clearable": true, "type": "input", "not_equal": [{"options": ["unicode1_multi_not_equal_collapse.descr2.unicode2", "unicode1_multi_not_equal_collapse.descr3.unicode3"]}]}, "unicode1_multi_not_equal_collapse.descr1.unicode1_multi": {"clearable": true, "type": "input", "not_equal": [{"options": ["unicode1_multi_not_equal_collapse.descr2.unicode2_multi", "unicode1_multi_not_equal_collapse.descr3.unicode3_multi"]}]}, "unicode1_multi_not_equal_collapse.descr2.unicode2": {"clearable": true, "type": "input", "not_equal": [{"options": ["unicode1_multi_not_equal_collapse.descr1.unicode1", "unicode1_multi_not_equal_collapse.descr3.unicode3"]}]}, "unicode1_multi_not_equal_collapse.descr2.unicode2_multi": {"clearable": true, "type": "input", "not_equal": [{"options": ["unicode1_multi_not_equal_collapse.descr1.unicode1_multi", "unicode1_multi_not_equal_collapse.descr3.unicode3_multi"]}]}, "unicode1_multi_not_equal_collapse.descr3.unicode3": {"clearable": true, "type": "input", "not_equal": [{"options": ["unicode1_multi_not_equal_collapse.descr1.unicode1", "unicode1_multi_not_equal_collapse.descr2.unicode2"]}]}, "unicode1_multi_not_equal_collapse.descr3.unicode3_multi": {"clearable": true, "type": "input", "not_equal": [{"options": ["unicode1_multi_not_equal_collapse.descr1.unicode1_multi", "unicode1_multi_not_equal_collapse.descr2.unicode2_multi"]}]}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file +{"schema": {"unicode1_multi_not_equal_collapse.descr1": {"properties": {"unicode1_multi_not_equal_collapse.descr1.unicode1": {"type": "string", "title": "Unicode 1, not equal to 'a'"}, "unicode1_multi_not_equal_collapse.descr1.unicode1_multi": {"type": "string", "isMulti": true, "title": "Multi unicode 1, not equal to 'a' or 'b'"}}, "type": "object", "title": "Common configuration 1"}, "unicode1_multi_not_equal_collapse.descr2": {"properties": {"unicode1_multi_not_equal_collapse.descr2.unicode2": {"type": "string", "value": "a", "title": "Unicode 2"}, "unicode1_multi_not_equal_collapse.descr2.unicode2_multi": {"type": "string", "isMulti": true, "value": ["a", "b"], "title": "Multi unicode 2"}}, "type": "object", "title": "Common configuration 2"}, "unicode1_multi_not_equal_collapse.descr3": {"properties": {"unicode1_multi_not_equal_collapse.descr3.unicode3": {"type": "string", "title": "Unicode 3"}, "unicode1_multi_not_equal_collapse.descr3.unicode3_multi": {"type": "string", "isMulti": true, "title": "Multi unicode 3"}}, "type": "object", "title": "Common configuration 3"}}, "model": {"unicode1_multi_not_equal_collapse.descr1.unicode1_multi": {"required": true}, "unicode1_multi_not_equal_collapse.descr2.unicode2": {"value": "a"}, "unicode1_multi_not_equal_collapse.descr2.unicode2_multi": {"required": true, "value": ["a", "b"]}, "unicode1_multi_not_equal_collapse.descr3.unicode3_multi": {"required": true}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"unicode1_multi_not_equal_collapse.descr1.unicode1": {"clearable": true, "type": "input", "not_equal": [{"options": ["unicode1_multi_not_equal_collapse.descr2.unicode2", "unicode1_multi_not_equal_collapse.descr3.unicode3"]}]}, "unicode1_multi_not_equal_collapse.descr1.unicode1_multi": {"clearable": true, "type": "input", "not_equal": [{"options": ["unicode1_multi_not_equal_collapse.descr2.unicode2_multi", "unicode1_multi_not_equal_collapse.descr3.unicode3_multi"]}]}, "unicode1_multi_not_equal_collapse.descr2.unicode2": {"clearable": true, "type": "input", "not_equal": [{"options": ["unicode1_multi_not_equal_collapse.descr1.unicode1", "unicode1_multi_not_equal_collapse.descr3.unicode3"]}]}, "unicode1_multi_not_equal_collapse.descr2.unicode2_multi": {"clearable": true, "type": "input", "not_equal": [{"options": ["unicode1_multi_not_equal_collapse.descr1.unicode1_multi", "unicode1_multi_not_equal_collapse.descr3.unicode3_multi"]}]}, "unicode1_multi_not_equal_collapse.descr3.unicode3": {"clearable": true, "type": "input", "not_equal": [{"options": ["unicode1_multi_not_equal_collapse.descr1.unicode1", "unicode1_multi_not_equal_collapse.descr2.unicode2"]}]}, "unicode1_multi_not_equal_collapse.descr3.unicode3_multi": {"clearable": true, "type": "input", "not_equal": [{"options": ["unicode1_multi_not_equal_collapse.descr1.unicode1_multi", "unicode1_multi_not_equal_collapse.descr2.unicode2_multi"]}]}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/tests/data/subconfig_unicode1_multi_value.json b/tests/data/subconfig_unicode1_multi_value.json index 77c9f9d..d06bcdf 100644 --- a/tests/data/subconfig_unicode1_multi_value.json +++ b/tests/data/subconfig_unicode1_multi_value.json @@ -1 +1 @@ -{"schema": {"unicode1_multi_value.options": {"properties": {"unicode1_multi_value.options.unicode": {"type": "string", "isMulti": true, "value": ["a", "b"], "title": "String 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_multi_value.options.unicode": {"required": true, "value": ["a", "b"], "owner": "default"}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"unicode1_multi_value.options.unicode": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file +{"schema": {"unicode1_multi_value.options": {"properties": {"unicode1_multi_value.options.unicode": {"type": "string", "isMulti": true, "value": ["a", "b"], "title": "String 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_multi_value.options.unicode": {"required": true, "value": ["a", "b"]}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"unicode1_multi_value.options.unicode": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/tests/data/subconfig_unicode1_simple_callback.json b/tests/data/subconfig_unicode1_simple_callback.json index dd0465b..5d7de15 100644 --- a/tests/data/subconfig_unicode1_simple_callback.json +++ b/tests/data/subconfig_unicode1_simple_callback.json @@ -1 +1 @@ -{"schema": {"unicode1_simple_callback.options": {"properties": {"unicode1_simple_callback.options.unicode1": {"type": "string", "title": "Unicode 1", "value": "word"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_simple_callback.options.unicode1": {"value": "word", "owner": "default"}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"unicode1_simple_callback.options.unicode1": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file +{"schema": {"unicode1_simple_callback.options": {"properties": {"unicode1_simple_callback.options.unicode1": {"type": "string", "title": "Unicode 1", "value": "word"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_simple_callback.options.unicode1": {"value": "word"}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"unicode1_simple_callback.options.unicode1": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/tests/data/subconfig_unicode2_symlink.json b/tests/data/subconfig_unicode2_symlink.json index d606ea0..1656b2b 100644 --- a/tests/data/subconfig_unicode2_symlink.json +++ b/tests/data/subconfig_unicode2_symlink.json @@ -1 +1 @@ -{"schema": {"unicode2_symlink.options": {"properties": {"unicode2_symlink.options.unicode1": {"type": "string", "value": "test", "title": "Unicode 1"}, "unicode2_symlink.options.unicode2": {"type": "symlink", "opt_path": "unicode2_symlink.options.unicode1"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode2_symlink.options.unicode1": {"value": "test", "owner": "default"}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"unicode2_symlink.options.unicode1": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file +{"schema": {"unicode2_symlink.options": {"properties": {"unicode2_symlink.options.unicode1": {"type": "string", "value": "test", "title": "Unicode 1"}, "unicode2_symlink.options.unicode2": {"type": "symlink", "opt_path": "unicode2_symlink.options.unicode1"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode2_symlink.options.unicode1": {"value": "test"}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"unicode2_symlink.options.unicode1": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/tests/data/unicode1_leadership_default_value.json b/tests/data/unicode1_leadership_default_value.json index 60e65e9..6b95134 100644 --- a/tests/data/unicode1_leadership_default_value.json +++ b/tests/data/unicode1_leadership_default_value.json @@ -1 +1 @@ -{"schema": {"options": {"properties": {"options.unicode": {"properties": {"options.unicode.unicode": {"type": "string", "isMulti": true, "value": ["val1", "val2"], "title": "Unicode leader"}, "options.unicode.unicode1": {"type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode.unicode2": {"type": "string", "defaultmulti": "follower2", "isMulti": true, "title": "Unicode follower 2 with default multi"}, "options.unicode.unicode3": {"type": "string", "isMulti": true, "title": "Unicode follower 3"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": {"options.unicode.unicode": {"required": true, "value": ["val1", "val2"], "owner": "default"}, "options.unicode.unicode2": {"0": {"value": "follower2", "owner": "default"}, "1": {"value": "follower2", "owner": "default"}}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"options.unicode.unicode": {"clearable": true, "type": "input"}, "options.unicode.unicode1": {"clearable": true, "type": "input"}, "options.unicode.unicode2": {"clearable": true, "type": "input"}, "options.unicode.unicode3": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file +{"schema": {"options": {"properties": {"options.unicode": {"properties": {"options.unicode.unicode": {"type": "string", "isMulti": true, "value": ["val1", "val2"], "title": "Unicode leader"}, "options.unicode.unicode1": {"type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode.unicode2": {"type": "string", "defaultmulti": "follower2", "isMulti": true, "title": "Unicode follower 2 with default multi"}, "options.unicode.unicode3": {"type": "string", "isMulti": true, "title": "Unicode follower 3"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": {"options.unicode.unicode": {"required": true, "value": ["val1", "val2"]}, "options.unicode.unicode2": {"0": {"value": "follower2"}, "1": {"value": "follower2"}}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"options.unicode.unicode": {"clearable": true, "type": "input"}, "options.unicode.unicode1": {"clearable": true, "type": "input"}, "options.unicode.unicode2": {"clearable": true, "type": "input"}, "options.unicode.unicode3": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/tests/data/unicode1_leadership_value.updates1 b/tests/data/unicode1_leadership_value.updates1 index 9990961..0104b6b 100644 --- a/tests/data/unicode1_leadership_value.updates1 +++ b/tests/data/unicode1_leadership_value.updates1 @@ -1 +1 @@ -{"updates": ["options.unicode.unicode", "options.unicode.unicode1", "options.unicode.unicode2", "options.unicode.unicode3"], "model": {"options.unicode.unicode": {"owner": "default", "required": true, "value": ["val1", "val2"]}, "options.unicode.unicode2": {"0": {"owner": "default", "value": "follower2"}, "1": {"owner": "default", "value": "follower2"}}}} \ No newline at end of file +{"updates": ["options.unicode.unicode", "options.unicode.unicode1", "options.unicode.unicode2", "options.unicode.unicode3"], "model": {"options.unicode.unicode": {"required": true, "value": ["val1", "val2"]}, "options.unicode.unicode2": {"0": {"value": "follower2"}, "1": {"value": "follower2"}}}} \ No newline at end of file diff --git a/tests/data/unicode1_leadership_value.updates3 b/tests/data/unicode1_leadership_value.updates3 index 60f02a2..5e8b881 100644 --- a/tests/data/unicode1_leadership_value.updates3 +++ b/tests/data/unicode1_leadership_value.updates3 @@ -1 +1 @@ -{"updates": ["options.unicode.unicode", "options.unicode.unicode2"], "model": {"options.unicode.unicode": {"required": true, "value": ["val3", "val4", "val5"], "owner": "user"}, "options.unicode.unicode1": {"0": {"value": "super1", "owner": "user"}, "1": {"value": "super2", "owner": "user"}}, "options.unicode.unicode2": {"0": {"value": "pas test", "owner": "user"}, "1": {"value": "test", "owner": "user"}, "2": {"value": "follower2", "owner": "default"}}, "options.unicode.unicode3": {"1": {"value": "super", "owner": "user"}}}} \ No newline at end of file +{"updates": ["options.unicode.unicode", "options.unicode.unicode2"], "model": {"options.unicode.unicode": {"required": true, "value": ["val3", "val4", "val5"], "owner": "user"}, "options.unicode.unicode1": {"0": {"value": "super1", "owner": "user"}, "1": {"value": "super2", "owner": "user"}}, "options.unicode.unicode2": {"0": {"value": "pas test", "owner": "user"}, "1": {"value": "test", "owner": "user"}, "2": {"value": "follower2"}}, "options.unicode.unicode3": {"1": {"value": "super", "owner": "user"}}}} \ No newline at end of file diff --git a/tests/data/unicode1_leadership_value.updates4 b/tests/data/unicode1_leadership_value.updates4 index ad004cd..dfd1560 100644 --- a/tests/data/unicode1_leadership_value.updates4 +++ b/tests/data/unicode1_leadership_value.updates4 @@ -1 +1 @@ -{"model": {"options.unicode.unicode": {"owner": "user", "required": true, "value": ["val3", "val4", "val5"]}, "options.unicode.unicode1": {"0": {"owner": "user", "value": "super1"}, "1": {"owner": "user", "value": "super2"}}, "options.unicode.unicode2": {"0": {"owner": "user", "value": "pas test"}, "1": {"owner": "user", "value": "test"}, "2": {"owner": "default", "value": "follower2"}}, "options.unicode.unicode3": {"1": {"owner": "user", "value": "super"}}}, "updates": ["options.unicode.unicode", "options.unicode.unicode2"]} \ No newline at end of file +{"model": {"options.unicode.unicode": {"owner": "user", "required": true, "value": ["val3", "val4", "val5"]}, "options.unicode.unicode1": {"0": {"owner": "user", "value": "super1"}, "1": {"owner": "user", "value": "super2"}}, "options.unicode.unicode2": {"0": {"owner": "user", "value": "pas test"}, "1": {"owner": "user", "value": "test"}, "2": {"value": "follower2"}}, "options.unicode.unicode3": {"1": {"owner": "user", "value": "super"}}}, "updates": ["options.unicode.unicode", "options.unicode.unicode2"]} \ No newline at end of file diff --git a/tests/data/unicode1_leadership_value.updates5 b/tests/data/unicode1_leadership_value.updates5 index 449ec25..70d754f 100644 --- a/tests/data/unicode1_leadership_value.updates5 +++ b/tests/data/unicode1_leadership_value.updates5 @@ -1 +1 @@ -{"updates": ["options.unicode.unicode2"], "model": {"options.unicode.unicode": {"required": true, "value": ["val3", "val4"], "owner": "user"}, "options.unicode.unicode1": {"0": {"value": "super1", "owner": "user"}, "1": {"value": "super2", "owner": "user"}}, "options.unicode.unicode2": {"0": {"value": "pas test", "owner": "user"}, "1": {"value": "follower2", "owner": "default"}}, "options.unicode.unicode3": {"1": {"value": "super", "owner": "user"}}}} \ No newline at end of file +{"updates": ["options.unicode.unicode2"], "model": {"options.unicode.unicode": {"required": true, "value": ["val3", "val4"], "owner": "user"}, "options.unicode.unicode1": {"0": {"value": "super1", "owner": "user"}, "1": {"value": "super2", "owner": "user"}}, "options.unicode.unicode2": {"0": {"value": "pas test", "owner": "user"}, "1": {"value": "follower2"}}, "options.unicode.unicode3": {"1": {"value": "super", "owner": "user"}}}} \ No newline at end of file diff --git a/tests/data/unicode1_multi_mod_value.updates1 b/tests/data/unicode1_multi_mod_value.updates1 index 063e084..00f529d 100644 --- a/tests/data/unicode1_multi_mod_value.updates1 +++ b/tests/data/unicode1_multi_mod_value.updates1 @@ -1 +1 @@ -{"updates": ["options.unicode"], "model": {"options.unicode": {"owner": "default", "required": true, "value": ["a", "b"]}}} \ No newline at end of file +{"updates": ["options.unicode"], "model": {"options.unicode": {"required": true, "value": ["a", "b"]}}} \ No newline at end of file diff --git a/tests/data/unicode1_multi_not_equal_collapse.json b/tests/data/unicode1_multi_not_equal_collapse.json index 1b7c28d..e3d65ad 100644 --- a/tests/data/unicode1_multi_not_equal_collapse.json +++ b/tests/data/unicode1_multi_not_equal_collapse.json @@ -1 +1 @@ -{"schema": {"descr1": {"properties": {"descr1.unicode1": {"type": "string", "title": "Unicode 1, not equal to 'a'"}, "descr1.unicode1_multi": {"type": "string", "isMulti": true, "title": "Multi unicode 1, not equal to 'a' or 'b'"}}, "type": "object", "title": "Common configuration 1"}, "descr2": {"properties": {"descr2.unicode2": {"type": "string", "value": "a", "title": "Unicode 2"}, "descr2.unicode2_multi": {"type": "string", "isMulti": true, "value": ["a", "b"], "title": "Multi unicode 2"}}, "type": "object", "title": "Common configuration 2"}, "descr3": {"properties": {"descr3.unicode3": {"type": "string", "title": "Unicode 3"}, "descr3.unicode3_multi": {"type": "string", "isMulti": true, "title": "Multi unicode 3"}}, "type": "object", "title": "Common configuration 3"}}, "model": {"descr1.unicode1_multi": {"required": true}, "descr2.unicode2": {"value": "a", "owner": "default"}, "descr2.unicode2_multi": {"required": true, "value": ["a", "b"], "owner": "default"}, "descr3.unicode3_multi": {"required": true}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"descr1.unicode1": {"clearable": true, "type": "input", "not_equal": [{"options": ["descr2.unicode2", "descr3.unicode3"]}]}, "descr1.unicode1_multi": {"clearable": true, "type": "input", "not_equal": [{"options": ["descr2.unicode2_multi", "descr3.unicode3_multi"]}]}, "descr2.unicode2": {"clearable": true, "type": "input", "not_equal": [{"options": ["descr1.unicode1", "descr3.unicode3"]}]}, "descr2.unicode2_multi": {"clearable": true, "type": "input", "not_equal": [{"options": ["descr1.unicode1_multi", "descr3.unicode3_multi"]}]}, "descr3.unicode3": {"clearable": true, "type": "input", "not_equal": [{"options": ["descr1.unicode1", "descr2.unicode2"]}]}, "descr3.unicode3_multi": {"clearable": true, "type": "input", "not_equal": [{"options": ["descr1.unicode1_multi", "descr2.unicode2_multi"]}]}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file +{"schema": {"descr1": {"properties": {"descr1.unicode1": {"type": "string", "title": "Unicode 1, not equal to 'a'"}, "descr1.unicode1_multi": {"type": "string", "isMulti": true, "title": "Multi unicode 1, not equal to 'a' or 'b'"}}, "type": "object", "title": "Common configuration 1"}, "descr2": {"properties": {"descr2.unicode2": {"type": "string", "value": "a", "title": "Unicode 2"}, "descr2.unicode2_multi": {"type": "string", "isMulti": true, "value": ["a", "b"], "title": "Multi unicode 2"}}, "type": "object", "title": "Common configuration 2"}, "descr3": {"properties": {"descr3.unicode3": {"type": "string", "title": "Unicode 3"}, "descr3.unicode3_multi": {"type": "string", "isMulti": true, "title": "Multi unicode 3"}}, "type": "object", "title": "Common configuration 3"}}, "model": {"descr1.unicode1_multi": {"required": true}, "descr2.unicode2": {"value": "a"}, "descr2.unicode2_multi": {"required": true, "value": ["a", "b"]}, "descr3.unicode3_multi": {"required": true}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"descr1.unicode1": {"clearable": true, "type": "input", "not_equal": [{"options": ["descr2.unicode2", "descr3.unicode3"]}]}, "descr1.unicode1_multi": {"clearable": true, "type": "input", "not_equal": [{"options": ["descr2.unicode2_multi", "descr3.unicode3_multi"]}]}, "descr2.unicode2": {"clearable": true, "type": "input", "not_equal": [{"options": ["descr1.unicode1", "descr3.unicode3"]}]}, "descr2.unicode2_multi": {"clearable": true, "type": "input", "not_equal": [{"options": ["descr1.unicode1_multi", "descr3.unicode3_multi"]}]}, "descr3.unicode3": {"clearable": true, "type": "input", "not_equal": [{"options": ["descr1.unicode1", "descr2.unicode2"]}]}, "descr3.unicode3_multi": {"clearable": true, "type": "input", "not_equal": [{"options": ["descr1.unicode1_multi", "descr2.unicode2_multi"]}]}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/tests/data/unicode1_multi_value.json b/tests/data/unicode1_multi_value.json index 47a27ad..d833ed9 100644 --- a/tests/data/unicode1_multi_value.json +++ b/tests/data/unicode1_multi_value.json @@ -1 +1 @@ -{"schema": {"options": {"properties": {"options.unicode": {"type": "string", "isMulti": true, "value": ["a", "b"], "title": "String 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode": {"required": true, "value": ["a", "b"], "owner": "default"}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"options.unicode": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file +{"schema": {"options": {"properties": {"options.unicode": {"type": "string", "isMulti": true, "value": ["a", "b"], "title": "String 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode": {"required": true, "value": ["a", "b"]}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"options.unicode": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/tests/data/unicode1_simple_callback.json b/tests/data/unicode1_simple_callback.json index e37f6c5..7a4a755 100644 --- a/tests/data/unicode1_simple_callback.json +++ b/tests/data/unicode1_simple_callback.json @@ -1 +1 @@ -{"schema": {"options": {"properties": {"options.unicode1": {"type": "string", "title": "Unicode 1", "value": "word"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode1": {"value": "word", "owner": "default"}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"options.unicode1": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file +{"schema": {"options": {"properties": {"options.unicode1": {"type": "string", "title": "Unicode 1", "value": "word"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode1": {"value": "word"}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"options.unicode1": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/tests/data/unicode2_symlink.json b/tests/data/unicode2_symlink.json index 4a493bf..8a5d5c1 100644 --- a/tests/data/unicode2_symlink.json +++ b/tests/data/unicode2_symlink.json @@ -1 +1 @@ -{"schema": {"options": {"properties": {"options.unicode1": {"type": "string", "value": "test", "title": "Unicode 1"}, "options.unicode2": {"type": "symlink", "opt_path": "options.unicode1"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode1": {"value": "test", "owner": "default"}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"options.unicode1": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file +{"schema": {"options": {"properties": {"options.unicode1": {"type": "string", "value": "test", "title": "Unicode 1"}, "options.unicode2": {"type": "symlink", "opt_path": "options.unicode1"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode1": {"value": "test"}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"options.unicode1": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file