diff --git a/test/data/boolean1.json b/test/data/boolean1.json deleted file mode 100644 index 83f9f8f..0000000 --- a/test/data/boolean1.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.boolean": {"name": "options.boolean", "type": "boolean", "title": "Boolean 1"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "form": {"null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/boolean1_frozen.json b/test/data/boolean1_frozen.json deleted file mode 100644 index a8e8448..0000000 --- a/test/data/boolean1_frozen.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.boolean": {"name": "options.boolean", "type": "boolean", "title": "Boolean 1 frozen"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.boolean": {"readOnly": true}}, "form": {"null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/choice1.json b/test/data/choice1.json deleted file mode 100644 index 60b933e..0000000 --- a/test/data/choice1.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.choice": {"name": "options.choice", "type": "choice", "enum": ["", "choice 1", "choice 2"], "title": "Choice description"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "form": {"options.choice": {"type": "choice"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/choice1_frozen.json b/test/data/choice1_frozen.json deleted file mode 100644 index 64a771a..0000000 --- a/test/data/choice1_frozen.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.choice": {"name": "options.choice", "type": "choice", "enum": ["", "choice 1", "choice 2"], "title": "Choice description frozen"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.choice": {"readOnly": true}}, "form": {"options.choice": {"type": "choice"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/choice1_leadership.json b/test/data/choice1_leadership.json deleted file mode 100644 index a3371c3..0000000 --- a/test/data/choice1_leadership.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.choice1": {"name": "options.choice1", "properties": {"options.choice1.choice1": {"name": "options.choice1.choice1", "type": "choice", "isMulti": true, "enum": ["choice 1", "choice 2"], "title": "Choice description leader"}, "options.choice1.choice2": {"name": "options.choice1.choice2", "type": "choice", "isMulti": true, "enum": ["", "choice 3", "choice 4"], "title": "Choice description follower 1"}, "options.choice1.choice3": {"name": "options.choice1.choice3", "type": "choice", "isMulti": true, "enum": ["", "choice 5", "choice 6"], "title": "Choice description follower 2"}, "options.choice1.choice4": {"name": "options.choice1.choice4", "type": "choice", "isMulti": true, "enum": ["", "choice 7", "choice 8"], "title": "Choice description follower 3"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": {"options.choice1.choice1": {"required": true}}, "form": {"options.choice1.choice1": {"type": "choice"}, "options.choice1.choice2": {"type": "choice"}, "options.choice1.choice3": {"type": "choice"}, "options.choice1.choice4": {"type": "choice"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/choice1_leadership_hidden.json b/test/data/choice1_leadership_hidden.json deleted file mode 100644 index 77df40f..0000000 --- a/test/data/choice1_leadership_hidden.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.choice1": {"name": "options.choice1", "properties": {"options.choice1.choice1": {"name": "options.choice1.choice1", "type": "choice", "isMulti": true, "enum": ["choice 1", "choice 2"], "title": "Choice description leader"}, "options.choice1.choice2": {"name": "options.choice1.choice2", "type": "choice", "isMulti": true, "enum": ["", "choice 3", "choice 4"], "title": "Choice description follower 1"}, "options.choice1.choice3": {"name": "options.choice1.choice3", "type": "choice", "isMulti": true, "enum": ["", "choice 5", "choice 6"], "title": "Choice description follower 2 hidden"}, "options.choice1.choice4": {"name": "options.choice1.choice4", "type": "choice", "isMulti": true, "enum": ["", "choice 7", "choice 8"], "title": "Choice description follower 3"}}, "type": "array", "title": "Slave 2 is hidden"}}, "type": "object", "title": "Common configuration 2"}}, "model": {"options.choice1.choice1": {"required": true}, "options.choice1.choice3": {"null": {"display": false, "hidden": true}}}, "form": {"options.choice1.choice1": {"type": "choice"}, "options.choice1.choice2": {"type": "choice"}, "options.choice1.choice3": {"type": "choice"}, "options.choice1.choice4": {"type": "choice"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/choice1_leadership_value.json b/test/data/choice1_leadership_value.json deleted file mode 100644 index 8263190..0000000 --- a/test/data/choice1_leadership_value.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.choice1": {"name": "options.choice1", "properties": {"options.choice1.choice1": {"name": "options.choice1.choice1", "type": "choice", "isMulti": true, "enum": ["choice 1", "choice 2"], "title": "Choice leader"}, "options.choice1.choice2": {"name": "options.choice1.choice2", "type": "choice", "isMulti": true, "enum": ["", "choice 3", "choice 4"], "title": "Choice follower 1"}, "options.choice1.choice3": {"name": "options.choice1.choice3", "type": "choice", "isMulti": true, "enum": ["", "choice 5", "choice 6"], "title": "Choice follower 2"}, "options.choice1.choice4": {"name": "options.choice1.choice4", "type": "choice", "isMulti": true, "enum": ["", "choice 7", "choice 8"], "title": "Choice follower 3"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": {"options.choice1.choice1": {"required": true, "value": ["choice 2"], "owner": "user"}, "options.choice1.choice2": {"0": {"value": "choice 4", "owner": "user"}}}, "form": {"options.choice1.choice1": {"type": "choice"}, "options.choice1.choice2": {"type": "choice"}, "options.choice1.choice3": {"type": "choice"}, "options.choice1.choice4": {"type": "choice"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/choice1_multi.json b/test/data/choice1_multi.json deleted file mode 100644 index 819320d..0000000 --- a/test/data/choice1_multi.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.choice": {"name": "options.choice", "type": "choice", "isMulti": true, "enum": ["choice 1", "choice 2"], "title": "Choice description"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.choice": {"required": true}}, "form": {"options.choice": {"type": "choice"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/choice1_rename.json b/test/data/choice1_rename.json deleted file mode 100644 index 60b933e..0000000 --- a/test/data/choice1_rename.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.choice": {"name": "options.choice", "type": "choice", "enum": ["", "choice 1", "choice 2"], "title": "Choice description"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "form": {"options.choice": {"type": "choice"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/choice1_requires.json b/test/data/choice1_requires.json deleted file mode 100644 index 508b905..0000000 --- a/test/data/choice1_requires.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.choice": {"name": "options.choice", "type": "choice", "value": "hide", "enum": ["hide", "show"], "title": "Choice description"}, "options.unicode2": {"name": "options.unicode2", "type": "string", "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.choice": {"required": true, "value": "hide", "owner": "default"}, "options.unicode2": {"hidden": true}}, "form": {"options.choice": {"clearable": true, "type": "choice", "dependencies": {"default": {"show": ["options.unicode2"]}, "expected": {"hide": {"hide": ["options.unicode2"]}, "show": {"show": ["options.unicode2"]}}}}, "options.unicode2": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/date1.json b/test/data/date1.json deleted file mode 100644 index 72bcff7..0000000 --- a/test/data/date1.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.date": {"name": "options.date", "type": "date", "title": "Date description"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "form": {"null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/date1_frozen.json b/test/data/date1_frozen.json deleted file mode 100644 index 6206870..0000000 --- a/test/data/date1_frozen.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.date": {"name": "options.date", "type": "date", "title": "Date description frozen"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.date": {"readOnly": true}}, "form": {"null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/filename1.json b/test/data/filename1.json deleted file mode 100644 index 4a3201a..0000000 --- a/test/data/filename1.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"usbpath": {"name": "usbpath", "type": "filename", "title": "Chemin d'acc\u00e8s"}}, "model": {"usbpath": {"required": true}}, "form": {"usbpath": {"pattern": "^[a-zA-Z0-9\\-\\._~/+]+$", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/hostname1.json b/test/data/hostname1.json deleted file mode 100644 index d01acc0..0000000 --- a/test/data/hostname1.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.hostname1": {"name": "options.hostname1", "type": "domainname", "title": "Domainname Description"}, "options.hostname2": {"name": "options.hostname2", "type": "domainname", "title": "Domainname without dot Description"}, "options.hostname3": {"name": "options.hostname3", "type": "domainname", "title": "Hostname or IP Description"}, "options.hostname4": {"name": "options.hostname4", "type": "domainname", "title": "Netbios Description"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "form": {"options.hostname1": {"pattern": "^((?!-)[a-z0-9-]{1,63}\\.){1,}[a-z0-9-]{1,63}$", "type": "input"}, "options.hostname2": {"pattern": "^((?!-)[a-z0-9-]{0,63}\\.){0,}[a-z0-9-]{1,63}$", "type": "input"}, "options.hostname3": {"pattern": "^(?:((?!-)[a-z0-9-]{1,63})|(?:(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)))$", "type": "input"}, "options.hostname4": {"pattern": "^((?!-)[a-z0-9-]{1,15})$", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/ip1.json b/test/data/ip1.json deleted file mode 100644 index d929250..0000000 --- a/test/data/ip1.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.ip": {"name": "options.ip", "type": "ip", "title": "IP Description"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "form": {"options.ip": {"pattern": "^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/ip1_frozen.json b/test/data/ip1_frozen.json deleted file mode 100644 index a5f0640..0000000 --- a/test/data/ip1_frozen.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.ip": {"name": "options.ip", "type": "ip", "title": "IP Description frozen"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.ip": {"readOnly": true}}, "form": {"options.ip": {"pattern": "^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/mail1.json b/test/data/mail1.json deleted file mode 100644 index 66cab21..0000000 --- a/test/data/mail1.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.mail": {"name": "options.mail", "type": "email", "title": "Mail Description"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "form": {"options.mail": {"pattern": "^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\\.[a-zA-Z0-9-]+)*$", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/number1.json b/test/data/number1.json deleted file mode 100644 index 155e2e9..0000000 --- a/test/data/number1.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.integer": {"name": "options.integer", "type": "integer", "title": "integer 1"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "form": {"options.integer": {"allowedpattern": "[0-9]", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/number1_frozen.json b/test/data/number1_frozen.json deleted file mode 100644 index e680d56..0000000 --- a/test/data/number1_frozen.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.integer": {"name": "options.integer", "type": "integer", "title": "integer 1 frozen"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.integer": {"readOnly": true}}, "form": {"options.integer": {"allowedpattern": "[0-9]", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/number1_mod_value.json b/test/data/number1_mod_value.json deleted file mode 100644 index 810a292..0000000 --- a/test/data/number1_mod_value.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.integer": {"name": "options.integer", "type": "integer", "value": 0, "title": "integer 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.integer": {"value": 3, "owner": "user"}}, "form": {"options.integer": {"clearable": true, "allowedpattern": "[0-9]", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/number1_value.json b/test/data/number1_value.json deleted file mode 100644 index 6cc4bce..0000000 --- a/test/data/number1_value.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.integer": {"name": "options.integer", "type": "integer", "value": 0, "title": "integer 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.integer": {"value": 0, "owner": "default"}}, "form": {"options.integer": {"clearable": true, "allowedpattern": "[0-9]", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_boolean1.json b/test/data/subconfig_boolean1.json deleted file mode 100644 index c06cd49..0000000 --- a/test/data/subconfig_boolean1.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"boolean1.options": {"name": "boolean1.options", "properties": {"boolean1.options.boolean": {"name": "boolean1.options.boolean", "type": "boolean", "title": "Boolean 1"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "form": {"null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_boolean1_frozen.json b/test/data/subconfig_boolean1_frozen.json deleted file mode 100644 index 0c537bd..0000000 --- a/test/data/subconfig_boolean1_frozen.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"boolean1_frozen.options": {"name": "boolean1_frozen.options", "properties": {"boolean1_frozen.options.boolean": {"name": "boolean1_frozen.options.boolean", "type": "boolean", "title": "Boolean 1 frozen"}}, "type": "object", "title": "Common configuration"}}, "model": {"boolean1_frozen.options.boolean": {"readOnly": true}}, "form": {"null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_choice1.json b/test/data/subconfig_choice1.json deleted file mode 100644 index 39dc62c..0000000 --- a/test/data/subconfig_choice1.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"choice1.options": {"name": "choice1.options", "properties": {"choice1.options.choice": {"name": "choice1.options.choice", "type": "choice", "enum": ["", "choice 1", "choice 2"], "title": "Choice description"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "form": {"choice1.options.choice": {"type": "choice"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_choice1_frozen.json b/test/data/subconfig_choice1_frozen.json deleted file mode 100644 index 1251624..0000000 --- a/test/data/subconfig_choice1_frozen.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"choice1_frozen.options": {"name": "choice1_frozen.options", "properties": {"choice1_frozen.options.choice": {"name": "choice1_frozen.options.choice", "type": "choice", "enum": ["", "choice 1", "choice 2"], "title": "Choice description frozen"}}, "type": "object", "title": "Common configuration"}}, "model": {"choice1_frozen.options.choice": {"readOnly": true}}, "form": {"choice1_frozen.options.choice": {"type": "choice"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_choice1_leadership.json b/test/data/subconfig_choice1_leadership.json deleted file mode 100644 index e8c83bd..0000000 --- a/test/data/subconfig_choice1_leadership.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"choice1_leadership.options": {"name": "choice1_leadership.options", "properties": {"choice1_leadership.options.choice1": {"name": "choice1_leadership.options.choice1", "properties": {"choice1_leadership.options.choice1.choice1": {"name": "choice1_leadership.options.choice1.choice1", "type": "choice", "isMulti": true, "enum": ["choice 1", "choice 2"], "title": "Choice description leader"}, "choice1_leadership.options.choice1.choice2": {"name": "choice1_leadership.options.choice1.choice2", "type": "choice", "isMulti": true, "enum": ["", "choice 3", "choice 4"], "title": "Choice description follower 1"}, "choice1_leadership.options.choice1.choice3": {"name": "choice1_leadership.options.choice1.choice3", "type": "choice", "isMulti": true, "enum": ["", "choice 5", "choice 6"], "title": "Choice description follower 2"}, "choice1_leadership.options.choice1.choice4": {"name": "choice1_leadership.options.choice1.choice4", "type": "choice", "isMulti": true, "enum": ["", "choice 7", "choice 8"], "title": "Choice description follower 3"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": {"choice1_leadership.options.choice1.choice1": {"required": true}}, "form": {"choice1_leadership.options.choice1.choice1": {"type": "choice"}, "choice1_leadership.options.choice1.choice2": {"type": "choice"}, "choice1_leadership.options.choice1.choice3": {"type": "choice"}, "choice1_leadership.options.choice1.choice4": {"type": "choice"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_choice1_leadership_hidden.json b/test/data/subconfig_choice1_leadership_hidden.json deleted file mode 100644 index 19779ca..0000000 --- a/test/data/subconfig_choice1_leadership_hidden.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"choice1_leadership_hidden.options": {"name": "choice1_leadership_hidden.options", "properties": {"choice1_leadership_hidden.options.choice1": {"name": "choice1_leadership_hidden.options.choice1", "properties": {"choice1_leadership_hidden.options.choice1.choice1": {"name": "choice1_leadership_hidden.options.choice1.choice1", "type": "choice", "isMulti": true, "enum": ["choice 1", "choice 2"], "title": "Choice description leader"}, "choice1_leadership_hidden.options.choice1.choice2": {"name": "choice1_leadership_hidden.options.choice1.choice2", "type": "choice", "isMulti": true, "enum": ["", "choice 3", "choice 4"], "title": "Choice description follower 1"}, "choice1_leadership_hidden.options.choice1.choice3": {"name": "choice1_leadership_hidden.options.choice1.choice3", "type": "choice", "isMulti": true, "enum": ["", "choice 5", "choice 6"], "title": "Choice description follower 2 hidden"}, "choice1_leadership_hidden.options.choice1.choice4": {"name": "choice1_leadership_hidden.options.choice1.choice4", "type": "choice", "isMulti": true, "enum": ["", "choice 7", "choice 8"], "title": "Choice description follower 3"}}, "type": "array", "title": "Slave 2 is hidden"}}, "type": "object", "title": "Common configuration 2"}}, "model": {"choice1_leadership_hidden.options.choice1.choice1": {"required": true}, "choice1_leadership_hidden.options.choice1.choice3": {"null": {"display": false, "hidden": true}}}, "form": {"choice1_leadership_hidden.options.choice1.choice1": {"type": "choice"}, "choice1_leadership_hidden.options.choice1.choice2": {"type": "choice"}, "choice1_leadership_hidden.options.choice1.choice3": {"type": "choice"}, "choice1_leadership_hidden.options.choice1.choice4": {"type": "choice"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_choice1_leadership_value.json b/test/data/subconfig_choice1_leadership_value.json deleted file mode 100644 index 2f7022e..0000000 --- a/test/data/subconfig_choice1_leadership_value.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"choice1_leadership_value.options": {"name": "choice1_leadership_value.options", "properties": {"choice1_leadership_value.options.choice1": {"name": "choice1_leadership_value.options.choice1", "properties": {"choice1_leadership_value.options.choice1.choice1": {"name": "choice1_leadership_value.options.choice1.choice1", "type": "choice", "isMulti": true, "enum": ["choice 1", "choice 2"], "title": "Choice leader"}, "choice1_leadership_value.options.choice1.choice2": {"name": "choice1_leadership_value.options.choice1.choice2", "type": "choice", "isMulti": true, "enum": ["", "choice 3", "choice 4"], "title": "Choice follower 1"}, "choice1_leadership_value.options.choice1.choice3": {"name": "choice1_leadership_value.options.choice1.choice3", "type": "choice", "isMulti": true, "enum": ["", "choice 5", "choice 6"], "title": "Choice follower 2"}, "choice1_leadership_value.options.choice1.choice4": {"name": "choice1_leadership_value.options.choice1.choice4", "type": "choice", "isMulti": true, "enum": ["", "choice 7", "choice 8"], "title": "Choice follower 3"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": {"choice1_leadership_value.options.choice1.choice1": {"required": true, "value": ["choice 2"], "owner": "user"}, "choice1_leadership_value.options.choice1.choice2": {"0": {"value": "choice 4", "owner": "user"}}}, "form": {"choice1_leadership_value.options.choice1.choice1": {"type": "choice"}, "choice1_leadership_value.options.choice1.choice2": {"type": "choice"}, "choice1_leadership_value.options.choice1.choice3": {"type": "choice"}, "choice1_leadership_value.options.choice1.choice4": {"type": "choice"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_choice1_multi.json b/test/data/subconfig_choice1_multi.json deleted file mode 100644 index acca9c6..0000000 --- a/test/data/subconfig_choice1_multi.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"choice1_multi.options": {"name": "choice1_multi.options", "properties": {"choice1_multi.options.choice": {"name": "choice1_multi.options.choice", "type": "choice", "isMulti": true, "enum": ["choice 1", "choice 2"], "title": "Choice description"}}, "type": "object", "title": "Common configuration"}}, "model": {"choice1_multi.options.choice": {"required": true}}, "form": {"choice1_multi.options.choice": {"type": "choice"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_choice1_rename.json b/test/data/subconfig_choice1_rename.json deleted file mode 100644 index 50e4881..0000000 --- a/test/data/subconfig_choice1_rename.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"choice1_rename.options": {"name": "choice1_rename.options", "properties": {"choice1_rename.options.choice": {"name": "choice1_rename.options.choice", "type": "choice", "enum": ["", "choice 1", "choice 2"], "title": "Choice description"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "form": {"choice1_rename.options.choice": {"type": "choice"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_choice1_requires.json b/test/data/subconfig_choice1_requires.json deleted file mode 100644 index ffa0271..0000000 --- a/test/data/subconfig_choice1_requires.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"choice1_requires.options": {"name": "choice1_requires.options", "properties": {"choice1_requires.options.choice": {"name": "choice1_requires.options.choice", "type": "choice", "value": "hide", "enum": ["hide", "show"], "title": "Choice description"}, "choice1_requires.options.unicode2": {"name": "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": {"hidden": true}}, "form": {"choice1_requires.options.choice": {"clearable": true, "type": "choice", "dependencies": {"default": {"show": ["choice1_requires.options.unicode2"]}, "expected": {"hide": {"hide": ["choice1_requires.options.unicode2"]}, "show": {"show": ["choice1_requires.options.unicode2"]}}}}, "choice1_requires.options.unicode2": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_date1.json b/test/data/subconfig_date1.json deleted file mode 100644 index 32ffcf3..0000000 --- a/test/data/subconfig_date1.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"date1.options": {"name": "date1.options", "properties": {"date1.options.date": {"name": "date1.options.date", "type": "date", "title": "Date description"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "form": {"null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_date1_frozen.json b/test/data/subconfig_date1_frozen.json deleted file mode 100644 index 12c3a0f..0000000 --- a/test/data/subconfig_date1_frozen.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"date1_frozen.options": {"name": "date1_frozen.options", "properties": {"date1_frozen.options.date": {"name": "date1_frozen.options.date", "type": "date", "title": "Date description frozen"}}, "type": "object", "title": "Common configuration"}}, "model": {"date1_frozen.options.date": {"readOnly": true}}, "form": {"null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_filename1.json b/test/data/subconfig_filename1.json deleted file mode 100644 index 2dc2073..0000000 --- a/test/data/subconfig_filename1.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"filename1.usbpath": {"name": "filename1.usbpath", "type": "filename", "title": "Chemin d'acc\u00e8s"}}, "model": {"filename1.usbpath": {"required": true}}, "form": {"filename1.usbpath": {"pattern": "^[a-zA-Z0-9\\-\\._~/+]+$", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_hostname1.json b/test/data/subconfig_hostname1.json deleted file mode 100644 index aebfe61..0000000 --- a/test/data/subconfig_hostname1.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"hostname1.options": {"name": "hostname1.options", "properties": {"hostname1.options.hostname1": {"name": "hostname1.options.hostname1", "type": "domainname", "title": "Domainname Description"}, "hostname1.options.hostname2": {"name": "hostname1.options.hostname2", "type": "domainname", "title": "Domainname without dot Description"}, "hostname1.options.hostname3": {"name": "hostname1.options.hostname3", "type": "domainname", "title": "Hostname or IP Description"}, "hostname1.options.hostname4": {"name": "hostname1.options.hostname4", "type": "domainname", "title": "Netbios Description"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "form": {"hostname1.options.hostname1": {"pattern": "^((?!-)[a-z0-9-]{1,63}\\.){1,}[a-z0-9-]{1,63}$", "type": "input"}, "hostname1.options.hostname2": {"pattern": "^((?!-)[a-z0-9-]{0,63}\\.){0,}[a-z0-9-]{1,63}$", "type": "input"}, "hostname1.options.hostname3": {"pattern": "^(?:((?!-)[a-z0-9-]{1,63})|(?:(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)))$", "type": "input"}, "hostname1.options.hostname4": {"pattern": "^((?!-)[a-z0-9-]{1,15})$", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_ip1.json b/test/data/subconfig_ip1.json deleted file mode 100644 index 1f1d524..0000000 --- a/test/data/subconfig_ip1.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"ip1.options": {"name": "ip1.options", "properties": {"ip1.options.ip": {"name": "ip1.options.ip", "type": "ip", "title": "IP Description"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "form": {"ip1.options.ip": {"pattern": "^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_ip1_frozen.json b/test/data/subconfig_ip1_frozen.json deleted file mode 100644 index 18b11ad..0000000 --- a/test/data/subconfig_ip1_frozen.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"ip1_frozen.options": {"name": "ip1_frozen.options", "properties": {"ip1_frozen.options.ip": {"name": "ip1_frozen.options.ip", "type": "ip", "title": "IP Description frozen"}}, "type": "object", "title": "Common configuration"}}, "model": {"ip1_frozen.options.ip": {"readOnly": true}}, "form": {"ip1_frozen.options.ip": {"pattern": "^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_mail1.json b/test/data/subconfig_mail1.json deleted file mode 100644 index 8d64d5a..0000000 --- a/test/data/subconfig_mail1.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"mail1.options": {"name": "mail1.options", "properties": {"mail1.options.mail": {"name": "mail1.options.mail", "type": "email", "title": "Mail Description"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "form": {"mail1.options.mail": {"pattern": "^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\\.[a-zA-Z0-9-]+)*$", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_number1.json b/test/data/subconfig_number1.json deleted file mode 100644 index d390f75..0000000 --- a/test/data/subconfig_number1.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"number1.options": {"name": "number1.options", "properties": {"number1.options.integer": {"name": "number1.options.integer", "type": "integer", "title": "integer 1"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "form": {"number1.options.integer": {"allowedpattern": "[0-9]", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_number1_frozen.json b/test/data/subconfig_number1_frozen.json deleted file mode 100644 index e8b5398..0000000 --- a/test/data/subconfig_number1_frozen.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"number1_frozen.options": {"name": "number1_frozen.options", "properties": {"number1_frozen.options.integer": {"name": "number1_frozen.options.integer", "type": "integer", "title": "integer 1 frozen"}}, "type": "object", "title": "Common configuration"}}, "model": {"number1_frozen.options.integer": {"readOnly": true}}, "form": {"number1_frozen.options.integer": {"allowedpattern": "[0-9]", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_number1_mod_value.json b/test/data/subconfig_number1_mod_value.json deleted file mode 100644 index 2cad967..0000000 --- a/test/data/subconfig_number1_mod_value.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"number1_mod_value.options": {"name": "number1_mod_value.options", "properties": {"number1_mod_value.options.integer": {"name": "number1_mod_value.options.integer", "type": "integer", "value": 0, "title": "integer 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"number1_mod_value.options.integer": {"value": 3, "owner": "user"}}, "form": {"number1_mod_value.options.integer": {"clearable": true, "allowedpattern": "[0-9]", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_number1_value.json b/test/data/subconfig_number1_value.json deleted file mode 100644 index a0ae28b..0000000 --- a/test/data/subconfig_number1_value.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"number1_value.options": {"name": "number1_value.options", "properties": {"number1_value.options.integer": {"name": "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"}}, "form": {"number1_value.options.integer": {"clearable": true, "allowedpattern": "[0-9]", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1.json b/test/data/subconfig_unicode1.json deleted file mode 100644 index fb4642f..0000000 --- a/test/data/subconfig_unicode1.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"unicode1.options": {"name": "unicode1.options", "properties": {"unicode1.options.unicode": {"name": "unicode1.options.unicode", "type": "string", "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "form": {"unicode1.options.unicode": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_frozen.json b/test/data/subconfig_unicode1_frozen.json deleted file mode 100644 index 6e047db..0000000 --- a/test/data/subconfig_unicode1_frozen.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"unicode1_frozen.options": {"name": "unicode1_frozen.options", "properties": {"unicode1_frozen.options.unicode": {"name": "unicode1_frozen.options.unicode", "type": "string", "title": "Unicode 1 frozen"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_frozen.options.unicode": {"readOnly": true}}, "form": {"unicode1_frozen.options.unicode": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_leader_hidden_followers.json b/test/data/subconfig_unicode1_leader_hidden_followers.json deleted file mode 100644 index 55328b9..0000000 --- a/test/data/subconfig_unicode1_leader_hidden_followers.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"unicode1_leader_hidden_followers.options": {"name": "unicode1_leader_hidden_followers.options", "properties": {"unicode1_leader_hidden_followers.options.unicode": {"name": "unicode1_leader_hidden_followers.options.unicode", "properties": {"unicode1_leader_hidden_followers.options.unicode.unicode": {"name": "unicode1_leader_hidden_followers.options.unicode.unicode", "type": "string", "isMulti": true, "title": "Unicode leader"}, "unicode1_leader_hidden_followers.options.unicode.unicode1": {"name": "unicode1_leader_hidden_followers.options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leader_hidden_followers.options.unicode.unicode2": {"name": "unicode1_leader_hidden_followers.options.unicode.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 2"}, "unicode1_leader_hidden_followers.options.unicode.unicode3": {"name": "unicode1_leader_hidden_followers.options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 3"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_leader_hidden_followers.options.unicode.unicode": {"display": false, "required": true, "hidden": true}}, "form": {"unicode1_leader_hidden_followers.options.unicode.unicode": {"type": "input"}, "unicode1_leader_hidden_followers.options.unicode.unicode1": {"type": "input"}, "unicode1_leader_hidden_followers.options.unicode.unicode2": {"type": "input"}, "unicode1_leader_hidden_followers.options.unicode.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_leadership.json b/test/data/subconfig_unicode1_leadership.json deleted file mode 100644 index 3268211..0000000 --- a/test/data/subconfig_unicode1_leadership.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"unicode1_leadership.options": {"name": "unicode1_leadership.options", "properties": {"unicode1_leadership.options.unicode": {"name": "unicode1_leadership.options.unicode", "properties": {"unicode1_leadership.options.unicode.unicode": {"name": "unicode1_leadership.options.unicode.unicode", "type": "string", "isMulti": true, "title": "Unicode leader"}, "unicode1_leadership.options.unicode.unicode1": {"name": "unicode1_leadership.options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership.options.unicode.unicode2": {"name": "unicode1_leadership.options.unicode.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 2"}, "unicode1_leadership.options.unicode.unicode3": {"name": "unicode1_leadership.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.options.unicode.unicode": {"required": true}}, "form": {"unicode1_leadership.options.unicode.unicode": {"type": "input"}, "unicode1_leadership.options.unicode.unicode1": {"type": "input"}, "unicode1_leadership.options.unicode.unicode2": {"type": "input"}, "unicode1_leadership.options.unicode.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_leadership_default_value.json b/test/data/subconfig_unicode1_leadership_default_value.json deleted file mode 100644 index 342fb18..0000000 --- a/test/data/subconfig_unicode1_leadership_default_value.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"unicode1_leadership_default_value.options": {"name": "unicode1_leadership_default_value.options", "properties": {"unicode1_leadership_default_value.options.unicode": {"name": "unicode1_leadership_default_value.options.unicode", "properties": {"unicode1_leadership_default_value.options.unicode.unicode": {"name": "unicode1_leadership_default_value.options.unicode.unicode", "type": "string", "value": ["val1", "val2"], "isMulti": true, "title": "Unicode leader"}, "unicode1_leadership_default_value.options.unicode.unicode1": {"name": "unicode1_leadership_default_value.options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership_default_value.options.unicode.unicode2": {"name": "unicode1_leadership_default_value.options.unicode.unicode2", "type": "string", "default": "follower2", "isMulti": true, "title": "Unicode follower 2 with default multi"}, "unicode1_leadership_default_value.options.unicode.unicode3": {"name": "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"}}}, "form": {"unicode1_leadership_default_value.options.unicode.unicode": {"clearable": true, "type": "input"}, "unicode1_leadership_default_value.options.unicode.unicode1": {"type": "input"}, "unicode1_leadership_default_value.options.unicode.unicode2": {"clearable": true, "type": "input"}, "unicode1_leadership_default_value.options.unicode.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_leadership_hidden.json b/test/data/subconfig_unicode1_leadership_hidden.json deleted file mode 100644 index ebd77c8..0000000 --- a/test/data/subconfig_unicode1_leadership_hidden.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"unicode1_leadership_hidden.options": {"name": "unicode1_leadership_hidden.options", "properties": {"unicode1_leadership_hidden.options.unicode": {"name": "unicode1_leadership_hidden.options.unicode", "properties": {"unicode1_leadership_hidden.options.unicode.unicode": {"name": "unicode1_leadership_hidden.options.unicode.unicode", "type": "string", "isMulti": true, "title": "Unicode leader"}, "unicode1_leadership_hidden.options.unicode.unicode1": {"name": "unicode1_leadership_hidden.options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership_hidden.options.unicode.unicode2": {"name": "unicode1_leadership_hidden.options.unicode.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 2 hidden"}, "unicode1_leadership_hidden.options.unicode.unicode3": {"name": "unicode1_leadership_hidden.options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 3"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_leadership_hidden.options.unicode.unicode": {"required": true, "value": ["val1", "val2"], "owner": "user"}, "unicode1_leadership_hidden.options.unicode.unicode2": {"0": {"display": false, "hidden": true, "value": "super", "owner": "user"}, "1": {"display": false, "hidden": true}, "null": {"display": false, "hidden": true}}}, "form": {"unicode1_leadership_hidden.options.unicode.unicode": {"type": "input"}, "unicode1_leadership_hidden.options.unicode.unicode1": {"type": "input"}, "unicode1_leadership_hidden.options.unicode.unicode2": {"type": "input"}, "unicode1_leadership_hidden.options.unicode.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_leadership_hidden_all_default.json b/test/data/subconfig_unicode1_leadership_hidden_all_default.json deleted file mode 100644 index 8ff3c6f..0000000 --- a/test/data/subconfig_unicode1_leadership_hidden_all_default.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"unicode1_leadership_hidden_all_default.options": {"name": "unicode1_leadership_hidden_all_default.options", "properties": {"unicode1_leadership_hidden_all_default.options.unicode": {"name": "unicode1_leadership_hidden_all_default.options.unicode", "type": "string", "title": "Unicode leader"}, "unicode1_leadership_hidden_all_default.options.unicode1": {"name": "unicode1_leadership_hidden_all_default.options.unicode1", "properties": {"unicode1_leadership_hidden_all_default.options.unicode1.unicode1": {"name": "unicode1_leadership_hidden_all_default.options.unicode1.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership_hidden_all_default.options.unicode1.unicode2": {"name": "unicode1_leadership_hidden_all_default.options.unicode1.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 2"}, "unicode1_leadership_hidden_all_default.options.unicode1.unicode3": {"name": "unicode1_leadership_hidden_all_default.options.unicode1.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 3"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_leadership_hidden_all_default.options.unicode1.unicode1": {"required": true}}, "form": {"unicode1_leadership_hidden_all_default.options.unicode": {"type": "input"}, "unicode1_leadership_hidden_all_default.options.unicode1.unicode1": {"type": "input"}, "unicode1_leadership_hidden_all_default.options.unicode1.unicode2": {"type": "input"}, "unicode1_leadership_hidden_all_default.options.unicode1.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_leadership_not_equal.json b/test/data/subconfig_unicode1_leadership_not_equal.json deleted file mode 100644 index 247a12c..0000000 --- a/test/data/subconfig_unicode1_leadership_not_equal.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"unicode1_leadership_not_equal.options": {"name": "unicode1_leadership_not_equal.options", "properties": {"unicode1_leadership_not_equal.options.unicode": {"name": "unicode1_leadership_not_equal.options.unicode", "properties": {"unicode1_leadership_not_equal.options.unicode.unicode": {"name": "unicode1_leadership_not_equal.options.unicode.unicode", "type": "string", "isMulti": true, "title": "Unicode leader"}, "unicode1_leadership_not_equal.options.unicode.unicode1": {"name": "unicode1_leadership_not_equal.options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership_not_equal.options.unicode.unicode2": {"name": "unicode1_leadership_not_equal.options.unicode.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 2 not equal"}, "unicode1_leadership_not_equal.options.unicode.unicode3": {"name": "unicode1_leadership_not_equal.options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 3 not equal"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": {"unicode1_leadership_not_equal.options.unicode.unicode": {"required": true}}, "form": {"unicode1_leadership_not_equal.options.unicode.unicode": {"type": "input"}, "unicode1_leadership_not_equal.options.unicode.unicode1": {"type": "input"}, "unicode1_leadership_not_equal.options.unicode.unicode2": {"type": "input", "not_equal": {"options": ["unicode1_leadership_not_equal.options.unicode.unicode3"]}}, "unicode1_leadership_not_equal.options.unicode.unicode3": {"type": "input", "not_equal": {"options": ["unicode1_leadership_not_equal.options.unicode.unicode2"]}}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_leadership_requires.json b/test/data/subconfig_unicode1_leadership_requires.json deleted file mode 100644 index eaf8b7e..0000000 --- a/test/data/subconfig_unicode1_leadership_requires.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"unicode1_leadership_requires.options": {"name": "unicode1_leadership_requires.options", "properties": {"unicode1_leadership_requires.options.unicode": {"name": "unicode1_leadership_requires.options.unicode", "properties": {"unicode1_leadership_requires.options.unicode.unicode": {"name": "unicode1_leadership_requires.options.unicode.unicode", "type": "string", "isMulti": true, "title": "Unicode leader"}, "unicode1_leadership_requires.options.unicode.unicode1": {"name": "unicode1_leadership_requires.options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership_requires.options.unicode.unicode2": {"name": "unicode1_leadership_requires.options.unicode.unicode2", "type": "string", "isMulti": true, "title": "Values 'test' must show 'Unicode follower 3'"}, "unicode1_leadership_requires.options.unicode.unicode3": {"name": "unicode1_leadership_requires.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_requires.options.unicode.unicode": {"required": true}}, "form": {"unicode1_leadership_requires.options.unicode.unicode": {"type": "input"}, "unicode1_leadership_requires.options.unicode.unicode1": {"type": "input"}, "unicode1_leadership_requires.options.unicode.unicode2": {"type": "input", "dependencies": {"default": {"hide": ["unicode1_leadership_requires.options.unicode.unicode3"]}, "expected": {"test": {"show": ["unicode1_leadership_requires.options.unicode.unicode3"]}}}}, "unicode1_leadership_requires.options.unicode.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_leadership_requires_all.json b/test/data/subconfig_unicode1_leadership_requires_all.json deleted file mode 100644 index bb01329..0000000 --- a/test/data/subconfig_unicode1_leadership_requires_all.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"unicode1_leadership_requires_all.options": {"name": "unicode1_leadership_requires_all.options", "properties": {"unicode1_leadership_requires_all.options.unicode": {"name": "unicode1_leadership_requires_all.options.unicode", "type": "string", "title": "Value 'test' must show Leadership"}, "unicode1_leadership_requires_all.options.unicode1": {"name": "unicode1_leadership_requires_all.options.unicode1", "properties": {"unicode1_leadership_requires_all.options.unicode1.unicode1": {"name": "unicode1_leadership_requires_all.options.unicode1.unicode1", "type": "string", "isMulti": true, "title": "Unicode leader"}, "unicode1_leadership_requires_all.options.unicode1.unicode2": {"name": "unicode1_leadership_requires_all.options.unicode1.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership_requires_all.options.unicode1.unicode3": {"name": "unicode1_leadership_requires_all.options.unicode1.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 2"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_leadership_requires_all.options.unicode1": {"properties": ["hidden"], "hidden": true}, "unicode1_leadership_requires_all.options.unicode1.unicode1": {"required": true}}, "form": {"unicode1_leadership_requires_all.options.unicode": {"type": "input", "dependencies": {"default": {"hide": ["unicode1_leadership_requires_all.options.unicode1"]}, "expected": {"test": {"show": ["unicode1_leadership_requires_all.options.unicode1"]}}}}, "unicode1_leadership_requires_all.options.unicode1.unicode1": {"type": "input"}, "unicode1_leadership_requires_all.options.unicode1.unicode2": {"type": "input"}, "unicode1_leadership_requires_all.options.unicode1.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_leadership_requires_follower.json b/test/data/subconfig_unicode1_leadership_requires_follower.json deleted file mode 100644 index fbf1943..0000000 --- a/test/data/subconfig_unicode1_leadership_requires_follower.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"unicode1_leadership_requires_follower.options": {"name": "unicode1_leadership_requires_follower.options", "properties": {"unicode1_leadership_requires_follower.options.unicode1": {"name": "unicode1_leadership_requires_follower.options.unicode1", "properties": {"unicode1_leadership_requires_follower.options.unicode1.unicode1": {"name": "unicode1_leadership_requires_follower.options.unicode1.unicode1", "type": "string", "isMulti": true, "title": "Values 'test' must show 'Unicode follower 2'"}, "unicode1_leadership_requires_follower.options.unicode1.unicode2": {"name": "unicode1_leadership_requires_follower.options.unicode1.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership_requires_follower.options.unicode1.unicode3": {"name": "unicode1_leadership_requires_follower.options.unicode1.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 2"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_leadership_requires_follower.options.unicode1.unicode1": {"required": true}}, "form": {"unicode1_leadership_requires_follower.options.unicode1.unicode1": {"type": "input", "dependencies": {"default": {"hide": ["unicode1_leadership_requires_follower.options.unicode1.unicode3"]}, "expected": {"test": {"show": ["unicode1_leadership_requires_follower.options.unicode1.unicode3"]}}}}, "unicode1_leadership_requires_follower.options.unicode1.unicode2": {"type": "input"}, "unicode1_leadership_requires_follower.options.unicode1.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_leadership_requires_follower_value.json b/test/data/subconfig_unicode1_leadership_requires_follower_value.json deleted file mode 100644 index 86bd2e4..0000000 --- a/test/data/subconfig_unicode1_leadership_requires_follower_value.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"unicode1_leadership_requires_follower_value.options": {"name": "unicode1_leadership_requires_follower_value.options", "properties": {"unicode1_leadership_requires_follower_value.options.unicode1": {"name": "unicode1_leadership_requires_follower_value.options.unicode1", "properties": {"unicode1_leadership_requires_follower_value.options.unicode1.unicode1": {"name": "unicode1_leadership_requires_follower_value.options.unicode1.unicode1", "type": "string", "isMulti": true, "title": "Values 'test' must show 'Unicode follower 2'"}, "unicode1_leadership_requires_follower_value.options.unicode1.unicode2": {"name": "unicode1_leadership_requires_follower_value.options.unicode1.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership_requires_follower_value.options.unicode1.unicode3": {"name": "unicode1_leadership_requires_follower_value.options.unicode1.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 2"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_leadership_requires_follower_value.options.unicode1.unicode1": {"required": true, "value": ["test", "pas test"], "owner": "user"}, "unicode1_leadership_requires_follower_value.options.unicode1.unicode2": {"0": {"value": "super1", "owner": "user"}}, "unicode1_leadership_requires_follower_value.options.unicode1.unicode3": {"0": {"value": "super1", "owner": "user"}, "1": {"hidden": true}}}, "form": {"unicode1_leadership_requires_follower_value.options.unicode1.unicode1": {"type": "input", "dependencies": {"default": {"hide": ["unicode1_leadership_requires_follower_value.options.unicode1.unicode3"]}, "expected": {"test": {"show": ["unicode1_leadership_requires_follower_value.options.unicode1.unicode3"]}}}}, "unicode1_leadership_requires_follower_value.options.unicode1.unicode2": {"type": "input"}, "unicode1_leadership_requires_follower_value.options.unicode1.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_leadership_requires_followers.json b/test/data/subconfig_unicode1_leadership_requires_followers.json deleted file mode 100644 index 625c871..0000000 --- a/test/data/subconfig_unicode1_leadership_requires_followers.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"unicode1_leadership_requires_followers.options": {"name": "unicode1_leadership_requires_followers.options", "properties": {"unicode1_leadership_requires_followers.options.unicode1": {"name": "unicode1_leadership_requires_followers.options.unicode1", "properties": {"unicode1_leadership_requires_followers.options.unicode1.unicode1": {"name": "unicode1_leadership_requires_followers.options.unicode1.unicode1", "type": "string", "isMulti": true, "title": "Unicode leader"}, "unicode1_leadership_requires_followers.options.unicode1.unicode2": {"name": "unicode1_leadership_requires_followers.options.unicode1.unicode2", "type": "string", "isMulti": true, "title": "Values 'test' must show 'Unicode follower 2'"}, "unicode1_leadership_requires_followers.options.unicode1.unicode3": {"name": "unicode1_leadership_requires_followers.options.unicode1.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 2"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_leadership_requires_followers.options.unicode1.unicode1": {"required": true}}, "form": {"unicode1_leadership_requires_followers.options.unicode1.unicode1": {"type": "input"}, "unicode1_leadership_requires_followers.options.unicode1.unicode2": {"type": "input", "dependencies": {"default": {"hide": ["unicode1_leadership_requires_followers.options.unicode1.unicode3"]}, "expected": {"test": {"show": ["unicode1_leadership_requires_followers.options.unicode1.unicode3"]}}}}, "unicode1_leadership_requires_followers.options.unicode1.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_leadership_requires_leader.json b/test/data/subconfig_unicode1_leadership_requires_leader.json deleted file mode 100644 index 5261bcf..0000000 --- a/test/data/subconfig_unicode1_leadership_requires_leader.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"unicode1_leadership_requires_leader.options": {"name": "unicode1_leadership_requires_leader.options", "properties": {"unicode1_leadership_requires_leader.options.unicode": {"name": "unicode1_leadership_requires_leader.options.unicode", "type": "string", "title": "Value 'test' must show leader"}, "unicode1_leadership_requires_leader.options.unicode1": {"name": "unicode1_leadership_requires_leader.options.unicode1", "properties": {"unicode1_leadership_requires_leader.options.unicode1.unicode1": {"name": "unicode1_leadership_requires_leader.options.unicode1.unicode1", "type": "string", "isMulti": true, "title": "Unicode leader"}, "unicode1_leadership_requires_leader.options.unicode1.unicode2": {"name": "unicode1_leadership_requires_leader.options.unicode1.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership_requires_leader.options.unicode1.unicode3": {"name": "unicode1_leadership_requires_leader.options.unicode1.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 2"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_leadership_requires_leader.options.unicode1": {"properties": ["hidden"], "hidden": true}, "unicode1_leadership_requires_leader.options.unicode1.unicode1": {"required": true}}, "form": {"unicode1_leadership_requires_leader.options.unicode": {"type": "input", "dependencies": {"default": {"hide": ["unicode1_leadership_requires_leader.options.unicode1"]}, "expected": {"test": {"show": ["unicode1_leadership_requires_leader.options.unicode1"]}}}}, "unicode1_leadership_requires_leader.options.unicode1.unicode1": {"type": "input"}, "unicode1_leadership_requires_leader.options.unicode1.unicode2": {"type": "input"}, "unicode1_leadership_requires_leader.options.unicode1.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_leadership_requires_value.json b/test/data/subconfig_unicode1_leadership_requires_value.json deleted file mode 100644 index e43ea7f..0000000 --- a/test/data/subconfig_unicode1_leadership_requires_value.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"unicode1_leadership_requires_value.options": {"name": "unicode1_leadership_requires_value.options", "properties": {"unicode1_leadership_requires_value.options.unicode": {"name": "unicode1_leadership_requires_value.options.unicode", "properties": {"unicode1_leadership_requires_value.options.unicode.unicode": {"name": "unicode1_leadership_requires_value.options.unicode.unicode", "type": "string", "isMulti": true, "title": "Values 'test' must show 'Unicode follower 3'"}, "unicode1_leadership_requires_value.options.unicode.unicode1": {"name": "unicode1_leadership_requires_value.options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership_requires_value.options.unicode.unicode2": {"name": "unicode1_leadership_requires_value.options.unicode.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 2"}, "unicode1_leadership_requires_value.options.unicode.unicode3": {"name": "unicode1_leadership_requires_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_requires_value.options.unicode.unicode": {"required": true, "value": ["test", "val2"], "owner": "user"}, "unicode1_leadership_requires_value.options.unicode.unicode1": {"0": {"value": "super1", "owner": "user"}, "1": {"value": "super2", "owner": "user"}}, "unicode1_leadership_requires_value.options.unicode.unicode2": {"0": {"value": "pas test", "owner": "user"}, "1": {"value": "test", "owner": "user"}}, "unicode1_leadership_requires_value.options.unicode.unicode3": {"1": {"hidden": true, "value": "super", "owner": "user"}}}, "form": {"unicode1_leadership_requires_value.options.unicode.unicode": {"type": "input", "dependencies": {"default": {"hide": ["unicode1_leadership_requires_value.options.unicode.unicode3"]}, "expected": {"test": {"show": ["unicode1_leadership_requires_value.options.unicode.unicode3"]}}}}, "unicode1_leadership_requires_value.options.unicode.unicode1": {"type": "input"}, "unicode1_leadership_requires_value.options.unicode.unicode2": {"type": "input"}, "unicode1_leadership_requires_value.options.unicode.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_leadership_submulti.json b/test/data/subconfig_unicode1_leadership_submulti.json deleted file mode 100644 index 1e663cc..0000000 --- a/test/data/subconfig_unicode1_leadership_submulti.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"unicode1_leadership_submulti.options": {"name": "unicode1_leadership_submulti.options", "properties": {"unicode1_leadership_submulti.options.unicode": {"name": "unicode1_leadership_submulti.options.unicode", "properties": {"unicode1_leadership_submulti.options.unicode.unicode": {"name": "unicode1_leadership_submulti.options.unicode.unicode", "type": "string", "isMulti": true, "title": "Unicode leader"}, "unicode1_leadership_submulti.options.unicode.unicode1": {"name": "unicode1_leadership_submulti.options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership_submulti.options.unicode.unicode2": {"name": "unicode1_leadership_submulti.options.unicode.unicode2", "type": "string", "isMulti": true, "isSubMulti": true, "title": "Unicode follower 2 submulti"}, "unicode1_leadership_submulti.options.unicode.unicode3": {"name": "unicode1_leadership_submulti.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_submulti.options.unicode.unicode": {"required": true}}, "form": {"unicode1_leadership_submulti.options.unicode.unicode": {"type": "input"}, "unicode1_leadership_submulti.options.unicode.unicode1": {"type": "input"}, "unicode1_leadership_submulti.options.unicode.unicode2": {"type": "input"}, "unicode1_leadership_submulti.options.unicode.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_leadership_value.json b/test/data/subconfig_unicode1_leadership_value.json deleted file mode 100644 index 0229408..0000000 --- a/test/data/subconfig_unicode1_leadership_value.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"unicode1_leadership_value.options": {"name": "unicode1_leadership_value.options", "properties": {"unicode1_leadership_value.options.unicode": {"name": "unicode1_leadership_value.options.unicode", "properties": {"unicode1_leadership_value.options.unicode.unicode": {"name": "unicode1_leadership_value.options.unicode.unicode", "type": "string", "value": ["val1", "val2"], "isMulti": true, "title": "Unicode leader"}, "unicode1_leadership_value.options.unicode.unicode1": {"name": "unicode1_leadership_value.options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership_value.options.unicode.unicode2": {"name": "unicode1_leadership_value.options.unicode.unicode2", "type": "string", "default": "follower2", "isMulti": true, "title": "Unicode follower 2 with default multi"}, "unicode1_leadership_value.options.unicode.unicode3": {"name": "unicode1_leadership_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_value.options.unicode.unicode": {"required": true, "value": ["val3", "val4"], "owner": "user"}, "unicode1_leadership_value.options.unicode.unicode1": {"0": {"value": "super1", "owner": "user"}, "1": {"value": "super2", "owner": "user"}}, "unicode1_leadership_value.options.unicode.unicode2": {"0": {"value": "pas test", "owner": "user"}, "1": {"value": "test", "owner": "user"}}, "unicode1_leadership_value.options.unicode.unicode3": {"1": {"value": "super", "owner": "user"}}}, "form": {"unicode1_leadership_value.options.unicode.unicode": {"clearable": true, "type": "input"}, "unicode1_leadership_value.options.unicode.unicode1": {"type": "input"}, "unicode1_leadership_value.options.unicode.unicode2": {"clearable": true, "type": "input"}, "unicode1_leadership_value.options.unicode.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_mandatory.json b/test/data/subconfig_unicode1_mandatory.json deleted file mode 100644 index 0e324d5..0000000 --- a/test/data/subconfig_unicode1_mandatory.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"unicode1_mandatory.options": {"name": "unicode1_mandatory.options", "properties": {"unicode1_mandatory.options.unicode": {"name": "unicode1_mandatory.options.unicode", "type": "string", "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_mandatory.options.unicode": {"required": true}}, "form": {"unicode1_mandatory.options.unicode": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_mod_value.json b/test/data/subconfig_unicode1_mod_value.json deleted file mode 100644 index d491616..0000000 --- a/test/data/subconfig_unicode1_mod_value.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"unicode1_mod_value.options": {"name": "unicode1_mod_value.options", "properties": {"unicode1_mod_value.options.unicode": {"name": "unicode1_mod_value.options.unicode", "type": "string", "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_mod_value.options.unicode": {"value": "a", "owner": "user"}}, "form": {"unicode1_mod_value.options.unicode": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi.json b/test/data/subconfig_unicode1_multi.json deleted file mode 100644 index fe97bcb..0000000 --- a/test/data/subconfig_unicode1_multi.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"unicode1_multi.options": {"name": "unicode1_multi.options", "properties": {"unicode1_multi.options.unicode": {"name": "unicode1_multi.options.unicode", "type": "string", "isMulti": true, "title": "Multi string 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_multi.options.unicode": {"required": true}}, "form": {"unicode1_multi.options.unicode": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi_hidden.json b/test/data/subconfig_unicode1_multi_hidden.json deleted file mode 100644 index 7d89864..0000000 --- a/test/data/subconfig_unicode1_multi_hidden.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"unicode1_multi_hidden.options": {"name": "unicode1_multi_hidden.options", "properties": {"unicode1_multi_hidden.options.unicode": {"name": "unicode1_multi_hidden.options.unicode", "type": "string", "isMulti": true, "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_multi_hidden.options.unicode": {"display": false, "required": true, "hidden": true}}, "form": {"unicode1_multi_hidden.options.unicode": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi_mandatory.json b/test/data/subconfig_unicode1_multi_mandatory.json deleted file mode 100644 index 1a641e4..0000000 --- a/test/data/subconfig_unicode1_multi_mandatory.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"unicode1_multi_mandatory.options": {"name": "unicode1_multi_mandatory.options", "properties": {"unicode1_multi_mandatory.options.unicode": {"name": "unicode1_multi_mandatory.options.unicode", "type": "string", "isMulti": true, "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_multi_mandatory.options.unicode": {"required": true, "needs_len": true}}, "form": {"unicode1_multi_mandatory.options.unicode": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi_mod_value.json b/test/data/subconfig_unicode1_multi_mod_value.json deleted file mode 100644 index 1508d89..0000000 --- a/test/data/subconfig_unicode1_multi_mod_value.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"unicode1_multi_mod_value.options": {"name": "unicode1_multi_mod_value.options", "properties": {"unicode1_multi_mod_value.options.unicode": {"name": "unicode1_multi_mod_value.options.unicode", "type": "string", "value": ["a", "b"], "isMulti": true, "title": "String 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_multi_mod_value.options.unicode": {"required": true, "value": ["c", "d", "e"], "owner": "user"}}, "form": {"unicode1_multi_mod_value.options.unicode": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi_not_equal_collapse.json b/test/data/subconfig_unicode1_multi_not_equal_collapse.json deleted file mode 100644 index 5a299f3..0000000 --- a/test/data/subconfig_unicode1_multi_not_equal_collapse.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"unicode1_multi_not_equal_collapse.descr1": {"name": "unicode1_multi_not_equal_collapse.descr1", "properties": {"unicode1_multi_not_equal_collapse.descr1.unicode1": {"name": "unicode1_multi_not_equal_collapse.descr1.unicode1", "type": "string", "title": "Unicode 1, not equal to 'a'"}, "unicode1_multi_not_equal_collapse.descr1.unicode1_multi": {"name": "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": {"name": "unicode1_multi_not_equal_collapse.descr2", "properties": {"unicode1_multi_not_equal_collapse.descr2.unicode2": {"name": "unicode1_multi_not_equal_collapse.descr2.unicode2", "type": "string", "value": "a", "title": "Unicode 2"}, "unicode1_multi_not_equal_collapse.descr2.unicode2_multi": {"name": "unicode1_multi_not_equal_collapse.descr2.unicode2_multi", "type": "string", "value": ["a", "b"], "isMulti": true, "title": "Multi unicode 2"}}, "type": "object", "title": "Common configuration 2"}, "unicode1_multi_not_equal_collapse.descr3": {"name": "unicode1_multi_not_equal_collapse.descr3", "properties": {"unicode1_multi_not_equal_collapse.descr3.unicode3": {"name": "unicode1_multi_not_equal_collapse.descr3.unicode3", "type": "string", "title": "Unicode 3"}, "unicode1_multi_not_equal_collapse.descr3.unicode3_multi": {"name": "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}}, "form": {"unicode1_multi_not_equal_collapse.descr1.unicode1": {"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": {"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": {"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": {"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/test/data/subconfig_unicode1_multi_requires.json b/test/data/subconfig_unicode1_multi_requires.json deleted file mode 100644 index eb93672..0000000 --- a/test/data/subconfig_unicode1_multi_requires.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"unicode1_multi_requires.options": {"name": "unicode1_multi_requires.options", "properties": {"unicode1_multi_requires.options.unicode1": {"name": "unicode1_multi_requires.options.unicode1", "type": "string", "title": "Value 'test' must show Unicode 2"}, "unicode1_multi_requires.options.unicode2": {"name": "unicode1_multi_requires.options.unicode2", "type": "string", "isMulti": true, "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_multi_requires.options.unicode2": {"required": true, "hidden": true}}, "form": {"unicode1_multi_requires.options.unicode1": {"type": "input", "dependencies": {"default": {"hide": ["unicode1_multi_requires.options.unicode2"]}, "expected": {"test": {"show": ["unicode1_multi_requires.options.unicode2"]}}}}, "unicode1_multi_requires.options.unicode2": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi_value.json b/test/data/subconfig_unicode1_multi_value.json deleted file mode 100644 index c9c56a4..0000000 --- a/test/data/subconfig_unicode1_multi_value.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"unicode1_multi_value.options": {"name": "unicode1_multi_value.options", "properties": {"unicode1_multi_value.options.unicode": {"name": "unicode1_multi_value.options.unicode", "type": "string", "value": ["a", "b"], "isMulti": true, "title": "String 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_multi_value.options.unicode": {"required": true, "value": ["a", "b"], "owner": "default"}}, "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/test/data/subconfig_unicode1_not_equal.json b/test/data/subconfig_unicode1_not_equal.json deleted file mode 100644 index 714aa57..0000000 --- a/test/data/subconfig_unicode1_not_equal.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"unicode1_not_equal.options": {"name": "unicode1_not_equal.options", "properties": {"unicode1_not_equal.options.unicode1": {"name": "unicode1_not_equal.options.unicode1", "type": "string", "title": "Unicode 1"}, "unicode1_not_equal.options.unicode2": {"name": "unicode1_not_equal.options.unicode2", "type": "string", "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "form": {"unicode1_not_equal.options.unicode1": {"type": "input", "not_equal": {"options": ["unicode1_not_equal.options.unicode2"]}}, "unicode1_not_equal.options.unicode2": {"type": "input", "not_equal": {"options": ["unicode1_not_equal.options.unicode1"]}}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_optiondescription_requires.json b/test/data/subconfig_unicode1_optiondescription_requires.json deleted file mode 100644 index c66e752..0000000 --- a/test/data/subconfig_unicode1_optiondescription_requires.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"unicode1_optiondescription_requires.options": {"name": "unicode1_optiondescription_requires.options", "properties": {"unicode1_optiondescription_requires.options.unicode1": {"name": "unicode1_optiondescription_requires.options.unicode1", "type": "string", "title": "Value 'test' must show OptionDescription"}}, "type": "object", "title": "Common configuration"}, "unicode1_optiondescription_requires.unicode1": {"name": "unicode1_optiondescription_requires.unicode1", "properties": {"unicode1_optiondescription_requires.unicode1.unicode2": {"name": "unicode1_optiondescription_requires.unicode1.unicode2", "type": "string", "title": "Unicode 2"}, "unicode1_optiondescription_requires.unicode1.unicode3": {"name": "unicode1_optiondescription_requires.unicode1.unicode3", "type": "string", "title": "Unicode 3"}}, "type": "object", "title": "OptionDescription with 2 options"}}, "model": {"unicode1_optiondescription_requires.unicode1": {"properties": ["hidden"], "hidden": true}}, "form": {"unicode1_optiondescription_requires.options.unicode1": {"type": "input", "dependencies": {"default": {"hide": ["unicode1_optiondescription_requires.unicode1"]}, "expected": {"test": {"show": ["unicode1_optiondescription_requires.unicode1"]}}}}, "unicode1_optiondescription_requires.unicode1.unicode2": {"type": "input"}, "unicode1_optiondescription_requires.unicode1.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_requires.json b/test/data/subconfig_unicode1_requires.json deleted file mode 100644 index 4127788..0000000 --- a/test/data/subconfig_unicode1_requires.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"unicode1_requires.options": {"name": "unicode1_requires.options", "properties": {"unicode1_requires.options.unicode1": {"name": "unicode1_requires.options.unicode1", "type": "string", "title": "Value 'test' must show Unicode 2"}, "unicode1_requires.options.unicode2": {"name": "unicode1_requires.options.unicode2", "type": "string", "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_requires.options.unicode2": {"hidden": true}}, "form": {"unicode1_requires.options.unicode1": {"type": "input", "dependencies": {"default": {"hide": ["unicode1_requires.options.unicode2"]}, "expected": {"test": {"show": ["unicode1_requires.options.unicode2"]}}}}, "unicode1_requires.options.unicode2": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_simple_callback.json b/test/data/subconfig_unicode1_simple_callback.json deleted file mode 100644 index 4e52a42..0000000 --- a/test/data/subconfig_unicode1_simple_callback.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"unicode1_simple_callback.options": {"name": "unicode1_simple_callback.options", "properties": {"unicode1_simple_callback.options.unicode1": {"name": "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"}}, "form": {"unicode1_simple_callback.options.unicode1": {"type": "input", "clearable": true}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode2.json b/test/data/subconfig_unicode2.json deleted file mode 100644 index b2e9101..0000000 --- a/test/data/subconfig_unicode2.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"unicode2.options": {"name": "unicode2.options", "properties": {"unicode2.options.unicode1": {"name": "unicode2.options.unicode1", "type": "string", "title": "Unicode 1"}, "unicode2.options.unicode2": {"name": "unicode2.options.unicode2", "type": "string", "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "form": {"unicode2.options.unicode1": {"type": "input"}, "unicode2.options.unicode2": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode2_copy.json b/test/data/subconfig_unicode2_copy.json deleted file mode 100644 index 3aea312..0000000 --- a/test/data/subconfig_unicode2_copy.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"unicode2_copy.options": {"name": "unicode2_copy.options", "properties": {"unicode2_copy.options.unicode1": {"name": "unicode2_copy.options.unicode1", "type": "string", "title": "Unicode 1"}, "unicode2_copy.options.unicode2": {"name": "unicode2_copy.options.unicode2", "type": "string", "title": "Unicode 2 (copy)"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "form": {"unicode2_copy.options.unicode1": {"type": "input", "copy": ["unicode2_copy.options.unicode2"]}, "unicode2_copy.options.unicode2": {"type": "input", "clearable": true}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode2_multi_copy.json b/test/data/subconfig_unicode2_multi_copy.json deleted file mode 100644 index c86482d..0000000 --- a/test/data/subconfig_unicode2_multi_copy.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"unicode2_multi_copy.options": {"name": "unicode2_multi_copy.options", "properties": {"unicode2_multi_copy.options.unicode1": {"name": "unicode2_multi_copy.options.unicode1", "type": "string", "isMulti": true, "title": "Unicode 1"}, "unicode2_multi_copy.options.unicode2": {"name": "unicode2_multi_copy.options.unicode2", "type": "string", "isMulti": true, "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode2_multi_copy.options.unicode1": {"required": true}, "unicode2_multi_copy.options.unicode2": {"required": true}}, "form": {"unicode2_multi_copy.options.unicode1": {"type": "input", "copy": ["unicode2_multi_copy.options.unicode2"]}, "unicode2_multi_copy.options.unicode2": {"type": "input", "clearable": true}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode2_symlink.json b/test/data/subconfig_unicode2_symlink.json deleted file mode 100644 index 12866a6..0000000 --- a/test/data/subconfig_unicode2_symlink.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"unicode2_symlink.options": {"name": "unicode2_symlink.options", "properties": {"unicode2_symlink.options.unicode1": {"name": "unicode2_symlink.options.unicode1", "type": "string", "value": "test", "title": "Unicode 1"}, "unicode2_symlink.options.unicode2": {"name": "unicode2_symlink.options.unicode2", "type": "symlink", "opt_path": "unicode2_symlink.options.unicode1", "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode2_symlink.options.unicode1": {"value": "test", "owner": "default"}}, "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/test/data/subconfig_unicode_hidden.json b/test/data/subconfig_unicode_hidden.json deleted file mode 100644 index d314c2f..0000000 --- a/test/data/subconfig_unicode_hidden.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"unicode_hidden.options": {"name": "unicode_hidden.options", "properties": {"unicode_hidden.options.unicode": {"name": "unicode_hidden.options.unicode", "type": "string", "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode_hidden.options.unicode": {"display": false, "hidden": true}}, "form": {"unicode_hidden.options.unicode": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode_property.json b/test/data/subconfig_unicode_property.json deleted file mode 100644 index d799946..0000000 --- a/test/data/subconfig_unicode_property.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"unicode_property.options": {"name": "unicode_property.options", "properties": {"unicode_property.options.unicode": {"name": "unicode_property.options.unicode", "type": "string", "title": "Expert unicode"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode_property.options.unicode": {"properties": ["expert"]}}, "form": {"unicode_property.options.unicode": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode_property_optiondescription.json b/test/data/subconfig_unicode_property_optiondescription.json deleted file mode 100644 index c1ec499..0000000 --- a/test/data/subconfig_unicode_property_optiondescription.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"unicode_property_optiondescription.options": {"name": "unicode_property_optiondescription.options", "properties": {"unicode_property_optiondescription.options.unicode": {"name": "unicode_property_optiondescription.options.unicode", "type": "string", "title": "Expert unicode"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode_property_optiondescription.options": {"properties": ["expert"]}}, "form": {"unicode_property_optiondescription.options.unicode": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_username1.json b/test/data/subconfig_username1.json deleted file mode 100644 index e341f39..0000000 --- a/test/data/subconfig_username1.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"username1.options": {"name": "username1.options", "properties": {"username1.options.username": {"name": "username1.options.username", "type": "username", "title": "Username description"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "form": {"username1.options.username": {"pattern": "^[a-z_][a-z0-9_-]{0,30}[$a-z0-9_-]{0,1}$", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_username1_frozen.json b/test/data/subconfig_username1_frozen.json deleted file mode 100644 index 3687c04..0000000 --- a/test/data/subconfig_username1_frozen.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"username1_frozen.options": {"name": "username1_frozen.options", "properties": {"username1_frozen.options.username": {"name": "username1_frozen.options.username", "type": "username", "title": "Username description frozen"}}, "type": "object", "title": "Common configuration"}}, "model": {"username1_frozen.options.username": {"readOnly": true}}, "form": {"username1_frozen.options.username": {"pattern": "^[a-z_][a-z0-9_-]{0,30}[$a-z0-9_-]{0,1}$", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1.json b/test/data/unicode1.json deleted file mode 100644 index 8475aad..0000000 --- a/test/data/unicode1.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "form": {"options.unicode": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_frozen.json b/test/data/unicode1_frozen.json deleted file mode 100644 index b0c88a1..0000000 --- a/test/data/unicode1_frozen.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "title": "Unicode 1 frozen"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode": {"readOnly": true}}, "form": {"options.unicode": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_leader_hidden_followers.json b/test/data/unicode1_leader_hidden_followers.json deleted file mode 100644 index 9e675af..0000000 --- a/test/data/unicode1_leader_hidden_followers.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "properties": {"options.unicode.unicode": {"name": "options.unicode.unicode", "type": "string", "isMulti": true, "title": "Unicode leader"}, "options.unicode.unicode1": {"name": "options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode.unicode2": {"name": "options.unicode.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 2"}, "options.unicode.unicode3": {"name": "options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 3"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode.unicode": {"display": false, "required": true, "hidden": true}}, "form": {"options.unicode.unicode": {"type": "input"}, "options.unicode.unicode1": {"type": "input"}, "options.unicode.unicode2": {"type": "input"}, "options.unicode.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_leadership.json b/test/data/unicode1_leadership.json deleted file mode 100644 index 7e93e41..0000000 --- a/test/data/unicode1_leadership.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "properties": {"options.unicode.unicode": {"name": "options.unicode.unicode", "type": "string", "isMulti": true, "title": "Unicode leader"}, "options.unicode.unicode1": {"name": "options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode.unicode2": {"name": "options.unicode.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 2"}, "options.unicode.unicode3": {"name": "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}}, "form": {"options.unicode.unicode": {"type": "input"}, "options.unicode.unicode1": {"type": "input"}, "options.unicode.unicode2": {"type": "input"}, "options.unicode.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_leadership_default_value.json b/test/data/unicode1_leadership_default_value.json deleted file mode 100644 index b37933c..0000000 --- a/test/data/unicode1_leadership_default_value.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "properties": {"options.unicode.unicode": {"name": "options.unicode.unicode", "type": "string", "value": ["val1", "val2"], "isMulti": true, "title": "Unicode leader"}, "options.unicode.unicode1": {"name": "options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode.unicode2": {"name": "options.unicode.unicode2", "type": "string", "default": "follower2", "isMulti": true, "title": "Unicode follower 2 with default multi"}, "options.unicode.unicode3": {"name": "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"}}}, "form": {"options.unicode.unicode": {"clearable": true, "type": "input"}, "options.unicode.unicode1": {"type": "input"}, "options.unicode.unicode2": {"clearable": true, "type": "input"}, "options.unicode.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_leadership_hidden.json b/test/data/unicode1_leadership_hidden.json deleted file mode 100644 index 4b2028d..0000000 --- a/test/data/unicode1_leadership_hidden.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "properties": {"options.unicode.unicode": {"name": "options.unicode.unicode", "type": "string", "isMulti": true, "title": "Unicode leader"}, "options.unicode.unicode1": {"name": "options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode.unicode2": {"name": "options.unicode.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 2 hidden"}, "options.unicode.unicode3": {"name": "options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 3"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode.unicode": {"required": true, "value": ["val1", "val2"], "owner": "user"}, "options.unicode.unicode2": {"0": {"display": false, "hidden": true, "value": "super", "owner": "user"}, "1": {"display": false, "hidden": true}, "null": {"display": false, "hidden": true}}}, "form": {"options.unicode.unicode": {"type": "input"}, "options.unicode.unicode1": {"type": "input"}, "options.unicode.unicode2": {"type": "input"}, "options.unicode.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_leadership_hidden_all_default.json b/test/data/unicode1_leadership_hidden_all_default.json deleted file mode 100644 index 6b814f7..0000000 --- a/test/data/unicode1_leadership_hidden_all_default.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "title": "Unicode leader"}, "options.unicode1": {"name": "options.unicode1", "properties": {"options.unicode1.unicode1": {"name": "options.unicode1.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode1.unicode2": {"name": "options.unicode1.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 2"}, "options.unicode1.unicode3": {"name": "options.unicode1.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 3"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode1.unicode1": {"required": true}}, "form": {"options.unicode": {"type": "input"}, "options.unicode1.unicode1": {"type": "input"}, "options.unicode1.unicode2": {"type": "input"}, "options.unicode1.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_leadership_not_equal.json b/test/data/unicode1_leadership_not_equal.json deleted file mode 100644 index 2e17434..0000000 --- a/test/data/unicode1_leadership_not_equal.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "properties": {"options.unicode.unicode": {"name": "options.unicode.unicode", "type": "string", "isMulti": true, "title": "Unicode leader"}, "options.unicode.unicode1": {"name": "options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode.unicode2": {"name": "options.unicode.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 2 not equal"}, "options.unicode.unicode3": {"name": "options.unicode.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 3 not equal"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": {"options.unicode.unicode": {"required": true}}, "form": {"options.unicode.unicode": {"type": "input"}, "options.unicode.unicode1": {"type": "input"}, "options.unicode.unicode2": {"type": "input", "not_equal": {"options": ["options.unicode.unicode3"]}}, "options.unicode.unicode3": {"type": "input", "not_equal": {"options": ["options.unicode.unicode2"]}}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_leadership_requires.json b/test/data/unicode1_leadership_requires.json deleted file mode 100644 index 5402b3c..0000000 --- a/test/data/unicode1_leadership_requires.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "properties": {"options.unicode.unicode": {"name": "options.unicode.unicode", "type": "string", "isMulti": true, "title": "Unicode leader"}, "options.unicode.unicode1": {"name": "options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode.unicode2": {"name": "options.unicode.unicode2", "type": "string", "isMulti": true, "title": "Values 'test' must show 'Unicode follower 3'"}, "options.unicode.unicode3": {"name": "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}}, "form": {"options.unicode.unicode": {"type": "input"}, "options.unicode.unicode1": {"type": "input"}, "options.unicode.unicode2": {"type": "input", "dependencies": {"default": {"hide": ["options.unicode.unicode3"]}, "expected": {"test": {"show": ["options.unicode.unicode3"]}}}}, "options.unicode.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_leadership_requires_all.json b/test/data/unicode1_leadership_requires_all.json deleted file mode 100644 index 27484fc..0000000 --- a/test/data/unicode1_leadership_requires_all.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "title": "Value 'test' must show Leadership"}, "options.unicode1": {"name": "options.unicode1", "properties": {"options.unicode1.unicode1": {"name": "options.unicode1.unicode1", "type": "string", "isMulti": true, "title": "Unicode leader"}, "options.unicode1.unicode2": {"name": "options.unicode1.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode1.unicode3": {"name": "options.unicode1.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 2"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode1": {"properties": ["hidden"], "hidden": true}, "options.unicode1.unicode1": {"required": true}}, "form": {"options.unicode": {"type": "input", "dependencies": {"default": {"hide": ["options.unicode1"]}, "expected": {"test": {"show": ["options.unicode1"]}}}}, "options.unicode1.unicode1": {"type": "input"}, "options.unicode1.unicode2": {"type": "input"}, "options.unicode1.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_leadership_requires_follower.json b/test/data/unicode1_leadership_requires_follower.json deleted file mode 100644 index 4eb4ba0..0000000 --- a/test/data/unicode1_leadership_requires_follower.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode1": {"name": "options.unicode1", "properties": {"options.unicode1.unicode1": {"name": "options.unicode1.unicode1", "type": "string", "isMulti": true, "title": "Values 'test' must show 'Unicode follower 2'"}, "options.unicode1.unicode2": {"name": "options.unicode1.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode1.unicode3": {"name": "options.unicode1.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 2"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode1.unicode1": {"required": true}}, "form": {"options.unicode1.unicode1": {"type": "input", "dependencies": {"default": {"hide": ["options.unicode1.unicode3"]}, "expected": {"test": {"show": ["options.unicode1.unicode3"]}}}}, "options.unicode1.unicode2": {"type": "input"}, "options.unicode1.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_leadership_requires_follower_value.json b/test/data/unicode1_leadership_requires_follower_value.json deleted file mode 100644 index e938f34..0000000 --- a/test/data/unicode1_leadership_requires_follower_value.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode1": {"name": "options.unicode1", "properties": {"options.unicode1.unicode1": {"name": "options.unicode1.unicode1", "type": "string", "isMulti": true, "title": "Values 'test' must show 'Unicode follower 2'"}, "options.unicode1.unicode2": {"name": "options.unicode1.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode1.unicode3": {"name": "options.unicode1.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 2"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode1.unicode1": {"required": true, "value": ["test", "pas test"], "owner": "user"}, "options.unicode1.unicode2": {"0": {"value": "super1", "owner": "user"}}, "options.unicode1.unicode3": {"0": {"value": "super1", "owner": "user"}, "1": {"hidden": true}}}, "form": {"options.unicode1.unicode1": {"type": "input", "dependencies": {"default": {"hide": ["options.unicode1.unicode3"]}, "expected": {"test": {"show": ["options.unicode1.unicode3"]}}}}, "options.unicode1.unicode2": {"type": "input"}, "options.unicode1.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_leadership_requires_followers.json b/test/data/unicode1_leadership_requires_followers.json deleted file mode 100644 index 7890d23..0000000 --- a/test/data/unicode1_leadership_requires_followers.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode1": {"name": "options.unicode1", "properties": {"options.unicode1.unicode1": {"name": "options.unicode1.unicode1", "type": "string", "isMulti": true, "title": "Unicode leader"}, "options.unicode1.unicode2": {"name": "options.unicode1.unicode2", "type": "string", "isMulti": true, "title": "Values 'test' must show 'Unicode follower 2'"}, "options.unicode1.unicode3": {"name": "options.unicode1.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 2"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode1.unicode1": {"required": true}}, "form": {"options.unicode1.unicode1": {"type": "input"}, "options.unicode1.unicode2": {"type": "input", "dependencies": {"default": {"hide": ["options.unicode1.unicode3"]}, "expected": {"test": {"show": ["options.unicode1.unicode3"]}}}}, "options.unicode1.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_leadership_requires_leader.json b/test/data/unicode1_leadership_requires_leader.json deleted file mode 100644 index f9f36d9..0000000 --- a/test/data/unicode1_leadership_requires_leader.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "title": "Value 'test' must show leader"}, "options.unicode1": {"name": "options.unicode1", "properties": {"options.unicode1.unicode1": {"name": "options.unicode1.unicode1", "type": "string", "isMulti": true, "title": "Unicode leader"}, "options.unicode1.unicode2": {"name": "options.unicode1.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode1.unicode3": {"name": "options.unicode1.unicode3", "type": "string", "isMulti": true, "title": "Unicode follower 2"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode1": {"properties": ["hidden"], "hidden": true}, "options.unicode1.unicode1": {"required": true}}, "form": {"options.unicode": {"type": "input", "dependencies": {"default": {"hide": ["options.unicode1"]}, "expected": {"test": {"show": ["options.unicode1"]}}}}, "options.unicode1.unicode1": {"type": "input"}, "options.unicode1.unicode2": {"type": "input"}, "options.unicode1.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_leadership_requires_value.json b/test/data/unicode1_leadership_requires_value.json deleted file mode 100644 index aa9226e..0000000 --- a/test/data/unicode1_leadership_requires_value.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "properties": {"options.unicode.unicode": {"name": "options.unicode.unicode", "type": "string", "isMulti": true, "title": "Values 'test' must show 'Unicode follower 3'"}, "options.unicode.unicode1": {"name": "options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode.unicode2": {"name": "options.unicode.unicode2", "type": "string", "isMulti": true, "title": "Unicode follower 2"}, "options.unicode.unicode3": {"name": "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": ["test", "val2"], "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"}}, "options.unicode.unicode3": {"1": {"hidden": true, "value": "super", "owner": "user"}}}, "form": {"options.unicode.unicode": {"type": "input", "dependencies": {"default": {"hide": ["options.unicode.unicode3"]}, "expected": {"test": {"show": ["options.unicode.unicode3"]}}}}, "options.unicode.unicode1": {"type": "input"}, "options.unicode.unicode2": {"type": "input"}, "options.unicode.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_leadership_submulti.json b/test/data/unicode1_leadership_submulti.json deleted file mode 100644 index 783d82a..0000000 --- a/test/data/unicode1_leadership_submulti.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "properties": {"options.unicode.unicode": {"name": "options.unicode.unicode", "type": "string", "isMulti": true, "title": "Unicode leader"}, "options.unicode.unicode1": {"name": "options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode.unicode2": {"name": "options.unicode.unicode2", "type": "string", "isMulti": true, "isSubMulti": true, "title": "Unicode follower 2 submulti"}, "options.unicode.unicode3": {"name": "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}}, "form": {"options.unicode.unicode": {"type": "input"}, "options.unicode.unicode1": {"type": "input"}, "options.unicode.unicode2": {"type": "input"}, "options.unicode.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_leadership_value.json b/test/data/unicode1_leadership_value.json deleted file mode 100644 index 0ea07d5..0000000 --- a/test/data/unicode1_leadership_value.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "properties": {"options.unicode.unicode": {"name": "options.unicode.unicode", "type": "string", "value": ["val1", "val2"], "isMulti": true, "title": "Unicode leader"}, "options.unicode.unicode1": {"name": "options.unicode.unicode1", "type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode.unicode2": {"name": "options.unicode.unicode2", "type": "string", "default": "follower2", "isMulti": true, "title": "Unicode follower 2 with default multi"}, "options.unicode.unicode3": {"name": "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": ["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": "test", "owner": "user"}}, "options.unicode.unicode3": {"1": {"value": "super", "owner": "user"}}}, "form": {"options.unicode.unicode": {"clearable": true, "type": "input"}, "options.unicode.unicode1": {"type": "input"}, "options.unicode.unicode2": {"clearable": true, "type": "input"}, "options.unicode.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_mandatory.json b/test/data/unicode1_mandatory.json deleted file mode 100644 index 38e543e..0000000 --- a/test/data/unicode1_mandatory.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode": {"required": true}}, "form": {"options.unicode": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_mod_value.json b/test/data/unicode1_mod_value.json deleted file mode 100644 index e9d8879..0000000 --- a/test/data/unicode1_mod_value.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode": {"value": "a", "owner": "user"}}, "form": {"options.unicode": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_multi.json b/test/data/unicode1_multi.json deleted file mode 100644 index 236cecc..0000000 --- a/test/data/unicode1_multi.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "isMulti": true, "title": "Multi string 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode": {"required": true}}, "form": {"options.unicode": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_multi_hidden.json b/test/data/unicode1_multi_hidden.json deleted file mode 100644 index 3729b70..0000000 --- a/test/data/unicode1_multi_hidden.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "isMulti": true, "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode": {"display": false, "required": true, "hidden": true}}, "form": {"options.unicode": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_multi_mandatory.json b/test/data/unicode1_multi_mandatory.json deleted file mode 100644 index e8b89ff..0000000 --- a/test/data/unicode1_multi_mandatory.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "isMulti": true, "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode": {"required": true, "needs_len": true}}, "form": {"options.unicode": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_multi_mod_value.json b/test/data/unicode1_multi_mod_value.json deleted file mode 100644 index 0bbcf44..0000000 --- a/test/data/unicode1_multi_mod_value.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "value": ["a", "b"], "isMulti": true, "title": "String 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode": {"required": true, "value": ["c", "d", "e"], "owner": "user"}}, "form": {"options.unicode": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_multi_not_equal_collapse.json b/test/data/unicode1_multi_not_equal_collapse.json deleted file mode 100644 index f9365d7..0000000 --- a/test/data/unicode1_multi_not_equal_collapse.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"descr1": {"name": "descr1", "properties": {"descr1.unicode1": {"name": "descr1.unicode1", "type": "string", "title": "Unicode 1, not equal to 'a'"}, "descr1.unicode1_multi": {"name": "descr1.unicode1_multi", "type": "string", "isMulti": true, "title": "Multi unicode 1, not equal to 'a' or 'b'"}}, "type": "object", "title": "Common configuration 1"}, "descr2": {"name": "descr2", "properties": {"descr2.unicode2": {"name": "descr2.unicode2", "type": "string", "value": "a", "title": "Unicode 2"}, "descr2.unicode2_multi": {"name": "descr2.unicode2_multi", "type": "string", "value": ["a", "b"], "isMulti": true, "title": "Multi unicode 2"}}, "type": "object", "title": "Common configuration 2"}, "descr3": {"name": "descr3", "properties": {"descr3.unicode3": {"name": "descr3.unicode3", "type": "string", "title": "Unicode 3"}, "descr3.unicode3_multi": {"name": "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}}, "form": {"descr1.unicode1": {"type": "input", "not_equal": {"options": ["descr2.unicode2", "descr3.unicode3"]}}, "descr1.unicode1_multi": {"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": {"type": "input", "not_equal": {"options": ["descr1.unicode1", "descr2.unicode2"]}}, "descr3.unicode3_multi": {"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/test/data/unicode1_multi_requires.json b/test/data/unicode1_multi_requires.json deleted file mode 100644 index 934e40b..0000000 --- a/test/data/unicode1_multi_requires.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode1": {"name": "options.unicode1", "type": "string", "title": "Value 'test' must show Unicode 2"}, "options.unicode2": {"name": "options.unicode2", "type": "string", "isMulti": true, "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode2": {"required": true, "hidden": true}}, "form": {"options.unicode1": {"type": "input", "dependencies": {"default": {"hide": ["options.unicode2"]}, "expected": {"test": {"show": ["options.unicode2"]}}}}, "options.unicode2": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_multi_value.json b/test/data/unicode1_multi_value.json deleted file mode 100644 index 95b286a..0000000 --- a/test/data/unicode1_multi_value.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "value": ["a", "b"], "isMulti": true, "title": "String 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode": {"required": true, "value": ["a", "b"], "owner": "default"}}, "form": {"options.unicode": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_not_equal.json b/test/data/unicode1_not_equal.json deleted file mode 100644 index 160aca5..0000000 --- a/test/data/unicode1_not_equal.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode1": {"name": "options.unicode1", "type": "string", "title": "Unicode 1"}, "options.unicode2": {"name": "options.unicode2", "type": "string", "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "form": {"options.unicode1": {"type": "input", "not_equal": {"options": ["options.unicode2"]}}, "options.unicode2": {"type": "input", "not_equal": {"options": ["options.unicode1"]}}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_optiondescription_requires.json b/test/data/unicode1_optiondescription_requires.json deleted file mode 100644 index dcb278e..0000000 --- a/test/data/unicode1_optiondescription_requires.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode1": {"name": "options.unicode1", "type": "string", "title": "Value 'test' must show OptionDescription"}}, "type": "object", "title": "Common configuration"}, "unicode1": {"name": "unicode1", "properties": {"unicode1.unicode2": {"name": "unicode1.unicode2", "type": "string", "title": "Unicode 2"}, "unicode1.unicode3": {"name": "unicode1.unicode3", "type": "string", "title": "Unicode 3"}}, "type": "object", "title": "OptionDescription with 2 options"}}, "model": {"unicode1": {"properties": ["hidden"], "hidden": true}}, "form": {"options.unicode1": {"type": "input", "dependencies": {"default": {"hide": ["unicode1"]}, "expected": {"test": {"show": ["unicode1"]}}}}, "unicode1.unicode2": {"type": "input"}, "unicode1.unicode3": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_requires.json b/test/data/unicode1_requires.json deleted file mode 100644 index 87cbd1c..0000000 --- a/test/data/unicode1_requires.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode1": {"name": "options.unicode1", "type": "string", "title": "Value 'test' must show Unicode 2"}, "options.unicode2": {"name": "options.unicode2", "type": "string", "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode2": {"hidden": true}}, "form": {"options.unicode1": {"type": "input", "dependencies": {"default": {"hide": ["options.unicode2"]}, "expected": {"test": {"show": ["options.unicode2"]}}}}, "options.unicode2": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_simple_callback.json b/test/data/unicode1_simple_callback.json deleted file mode 100644 index be082ce..0000000 --- a/test/data/unicode1_simple_callback.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode1": {"name": "options.unicode1", "type": "string", "title": "Unicode 1", "value": "word"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode1": {"value": "word", "owner": "default"}}, "form": {"options.unicode1": {"type": "input", "clearable": true}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode2.json b/test/data/unicode2.json deleted file mode 100644 index 0b01840..0000000 --- a/test/data/unicode2.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode1": {"name": "options.unicode1", "type": "string", "title": "Unicode 1"}, "options.unicode2": {"name": "options.unicode2", "type": "string", "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "form": {"options.unicode1": {"type": "input"}, "options.unicode2": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode2_copy.json b/test/data/unicode2_copy.json deleted file mode 100644 index d1afb6d..0000000 --- a/test/data/unicode2_copy.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode1": {"name": "options.unicode1", "type": "string", "title": "Unicode 1"}, "options.unicode2": {"name": "options.unicode2", "type": "string", "title": "Unicode 2 (copy)"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "form": {"options.unicode1": {"type": "input", "copy": ["options.unicode2"]}, "options.unicode2": {"type": "input", "clearable": true}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode2_multi_copy.json b/test/data/unicode2_multi_copy.json deleted file mode 100644 index c7a5361..0000000 --- a/test/data/unicode2_multi_copy.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode1": {"name": "options.unicode1", "type": "string", "isMulti": true, "title": "Unicode 1"}, "options.unicode2": {"name": "options.unicode2", "type": "string", "isMulti": true, "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode1": {"required": true}, "options.unicode2": {"required": true}}, "form": {"options.unicode1": {"type": "input", "copy": ["options.unicode2"]}, "options.unicode2": {"type": "input", "clearable": true}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode2_symlink.json b/test/data/unicode2_symlink.json deleted file mode 100644 index d8c617c..0000000 --- a/test/data/unicode2_symlink.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode1": {"name": "options.unicode1", "type": "string", "value": "test", "title": "Unicode 1"}, "options.unicode2": {"name": "options.unicode2", "type": "symlink", "opt_path": "options.unicode1", "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode1": {"value": "test", "owner": "default"}}, "form": {"options.unicode1": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode_hidden.json b/test/data/unicode_hidden.json deleted file mode 100644 index 675ac8e..0000000 --- a/test/data/unicode_hidden.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode": {"display": false, "hidden": true}}, "form": {"options.unicode": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode_property.json b/test/data/unicode_property.json deleted file mode 100644 index 407552e..0000000 --- a/test/data/unicode_property.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "title": "Expert unicode"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode": {"properties": ["expert"]}}, "form": {"options.unicode": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode_property_optiondescription.json b/test/data/unicode_property_optiondescription.json deleted file mode 100644 index b5d8577..0000000 --- a/test/data/unicode_property_optiondescription.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.unicode": {"name": "options.unicode", "type": "string", "title": "Expert unicode"}}, "type": "object", "title": "Common configuration"}}, "model": {"options": {"properties": ["expert"]}}, "form": {"options.unicode": {"type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/username1.json b/test/data/username1.json deleted file mode 100644 index 4849f6b..0000000 --- a/test/data/username1.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.username": {"name": "options.username", "type": "username", "title": "Username description"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "form": {"options.username": {"pattern": "^[a-z_][a-z0-9_-]{0,30}[$a-z0-9_-]{0,1}$", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/username1_frozen.json b/test/data/username1_frozen.json deleted file mode 100644 index 78e38db..0000000 --- a/test/data/username1_frozen.json +++ /dev/null @@ -1 +0,0 @@ -{"schema": {"options": {"name": "options", "properties": {"options.username": {"name": "options.username", "type": "username", "title": "Username description frozen"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.username": {"readOnly": true}}, "form": {"options.username": {"pattern": "^[a-z_][a-z0-9_-]{0,30}[$a-z0-9_-]{0,1}$", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/test_json.py b/test/test_json.py deleted file mode 100644 index 24afaa4..0000000 --- a/test/test_json.py +++ /dev/null @@ -1,280 +0,0 @@ -# -*- coding: utf-8 -*- -from json import loads -from os import listdir -from os.path import dirname, abspath, join, normpath, splitext -# import warnings - -# from tiramisu.error import ValueWarning -from tiramisu_json_api import Config -from tiramisu_json_api.error import PropertiesOptionError -from tiramisu_json_api.setting import undefined - - -# warnings.simplefilter("always", ValueWarning) - - -def list_data(ext='.json'): - datadir = join(normpath(dirname(abspath(__file__))), 'data') - filenames = listdir(datadir) - filenames.sort() - for filename in filenames: - if filename.endswith(ext): - yield join(datadir, filename) - - -def error_to_str(dico): - for key, value in dico.items(): - if isinstance(value, list): - for idx, val in enumerate(value): - if (isinstance(val, str) and (val.startswith('cannot access to') or val.startswith('ne peut accéder'))) or isinstance(val, PropertiesOptionError): - dico[key][idx] = "PropertiesOptionError" - return dico - - -# config.option().value.dict() -def test_dict(): - debug = False - # debug = True - for filename in list_data(): - if debug: - print('test_jsons', filename) - with open(filename, 'r') as fh: - json = loads(fh.read()) - # - config = Config(json) - with open(filename[:-4] + 'dict', 'r') as fh: - dico = loads(fh.read()) - - if debug: - from pprint import pprint - pprint(dico) - print('-----') - pprint(config.value.dict()) - assert error_to_str(dico) == error_to_str(config.value.dict()) - - -# config.option().value.get() -def test_get(): - debug = False - # debug = True - for filename in list_data(): - if debug: - print(filename) - with open(filename, 'r') as fh: - json = loads(fh.read()) - config = Config(json) - with open(filename[:-4] + 'dict', 'r') as fh: - dico = error_to_str(loads(fh.read())) - for key, value in dico.items(): - if config.option(key).option.isleader(): - leader_len = len(value) - if config.option(key).option.isfollower(): - values = [] - for index in range(leader_len): - val = config.option(key, index).value.get() - if isinstance(val, PropertiesOptionError): - val = "PropertiesOptionError" - values.append(val) - assert value == values - else: - assert value == config.option(key).value.get() - - -# config.option().owner.get() -def test_owner(): - debug = False - # debug = True - for filename in list_data(): - if debug: - print(filename) - with open(filename, 'r') as fh: - json = loads(fh.read()) - config = Config(json) - with open(filename[:-4] + 'owner', 'r') as fh: - dico = loads(fh.read()) - for key, value in dico.items(): - if debug: - print('key', key) - if config.option(key).option.isleader(): - leader_len = len(config.option(key).value.get()) - if config.option(key).option.isfollower(): - values = {} - for index in range(leader_len): - try: - values[str(index)] = config.option(key, index).owner.get() - except PropertiesOptionError: - pass - if debug: - print(value) - print('------------------') - print(values) - assert value == values - else: - if debug: - print(value) - print('------------------') - print({'null': config.option(key).owner.get()}) - assert value == {'null': config.option(key).owner.get()} - - -# config.option().property.get() -def test_prop(): - debug = False - # debug = True - for filename in list_data(): - if debug: - print(filename) - with open(filename, 'r') as fh: - json = loads(fh.read()) - config = Config(json) - with open(filename[:-4] + 'prop', 'r') as fh: - dico = loads(fh.read()) - for key, value in dico.items(): - if debug: - print('key', key) - for key_, val in value.items(): - value[key_] = set(val) - if config.option(key).option.isleader(): - leader_len = len(config.option(key).value.get()) - if config.option(key).option.isfollower(): - props = {} - for index in range(leader_len): - try: - props[str(index)] = set(config.option(key, index).property.get()) - except PropertiesOptionError: - pass - if 'clearable' in props[str(index)]: - props[str(index)].remove('clearable') - else: - props = {'null': set(config.option(key).property.get())} - if 'clearable' in props['null']: - props['null'].remove('clearable') - assert value == props - - -# config.option().property.get(True) -def test_prop2(): - debug = False - # debug = True - for filename in list_data(): - if debug: - print(filename) - with open(filename, 'r') as fh: - json = loads(fh.read()) - config = Config(json) - with open(filename[:-4] + 'prop2', 'r') as fh: - dico = loads(fh.read()) - for key, value in dico.items(): - if debug: - print('key', key) - for key_, val in value.items(): - value[key_] = set(val) - if config.option(key).option.isleader(): - leader_len = len(config.option(key).value.get()) - if config.option(key).option.isfollower(): - props = {} - for index in range(leader_len): - try: - props[str(index)] = set(config.option(key, index).property.get(True)) - except PropertiesOptionError: - pass - if 'clearable' in props[str(index)]: - props[str(index)].remove('clearable') - else: - props = {'null': set(config.option(key).property.get(True))} - if 'clearable' in props['null']: - props['null'].remove('clearable') - assert value == props - - -def test_info(): - debug = False - # debug = True - for filename in list_data(): - with open(filename, 'r') as fh: - json = loads(fh.read()) - config = Config(json) - with open(filename[:-4] + 'info', 'r') as fh: - dico = loads(fh.read()) - if debug: - from pprint import pprint - pprint(json) - print('-------------------') - pprint(dico) - - for key, values in dico.items(): - for info, value in values.items(): - assert getattr(config.option(key).option, info)() == value, 'error for {} info {} in {}'.format(key, info, filename) - - -def test_mod(): - debug = False - # debug = True - i = 0 - while True: - i += 1 - lists = list(list_data('.mod{}'.format(i))) - if not lists: - break - for filename in lists: - if debug: - print('test_mod', filename) - with open(filename[:-4] + 'json', 'r') as fh: - json = loads(fh.read()) - # - config = Config(json) - with open(filename) as fh: - mod = loads(fh.read()) - if debug: - print(mod['cmd']) - if isinstance(mod['cmd'], list): - for cmd in mod['cmd']: - eval(cmd) - else: - eval(mod['cmd']) - # - if debug: - from pprint import pprint - pprint(config.updates) - print('----------------') - pprint(mod['body']['updates']) - assert config.updates == mod['body']['updates'] - - with open(filename[:-4] + 'dict{}'.format(i), 'r') as fh: - dico1 = loads(fh.read()) - if debug: - from pprint import pprint - pprint(dico1) - print('----------------') - pprint(config.value.dict()) - assert dico1 == config.value.dict() - - -def test_mod2(): - debug = False - # debug = True - i = 0 - while True: - i += 1 - lists = list(list_data('.mod{}'.format(i))) - if not lists: - break - for filename in lists: - if debug: - print('test_mod', filename) - with open(filename[:-4] + 'json', 'r') as fh: - json = loads(fh.read()) - # - config = Config(json) - # - with open(filename[:-4] + 'updates{}'.format(i), 'r') as fh: - data = loads(fh.read()) - config.updates_data(data) - with open(filename[:-4] + 'dict{}'.format(i), 'r') as fh: - dico1 = loads(fh.read()) - if debug: - from pprint import pprint - pprint(dico1) - print('----------------') - pprint(config.value.dict()) - assert dico1 == config.value.dict() diff --git a/test/__init__.py b/tests/__init__.py similarity index 100% rename from test/__init__.py rename to tests/__init__.py diff --git a/test/data/boolean1.dict b/tests/data/boolean1.dict similarity index 100% rename from test/data/boolean1.dict rename to tests/data/boolean1.dict diff --git a/test/data/boolean1.info b/tests/data/boolean1.info similarity index 100% rename from test/data/boolean1.info rename to tests/data/boolean1.info diff --git a/tests/data/boolean1.json b/tests/data/boolean1.json new file mode 100644 index 0000000..3e95cad --- /dev/null +++ b/tests/data/boolean1.json @@ -0,0 +1 @@ +{"schema": {"options": {"properties": {"options.boolean": {"type": "boolean", "title": "Boolean 1"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"options.boolean": {"clearable": true}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/boolean1.owner b/tests/data/boolean1.owner similarity index 100% rename from test/data/boolean1.owner rename to tests/data/boolean1.owner diff --git a/test/data/boolean1.prop b/tests/data/boolean1.prop similarity index 100% rename from test/data/boolean1.prop rename to tests/data/boolean1.prop diff --git a/test/data/boolean1.prop2 b/tests/data/boolean1.prop2 similarity index 100% rename from test/data/boolean1.prop2 rename to tests/data/boolean1.prop2 diff --git a/test/data/boolean1_frozen.dict b/tests/data/boolean1_frozen.dict similarity index 100% rename from test/data/boolean1_frozen.dict rename to tests/data/boolean1_frozen.dict diff --git a/test/data/boolean1_frozen.info b/tests/data/boolean1_frozen.info similarity index 100% rename from test/data/boolean1_frozen.info rename to tests/data/boolean1_frozen.info diff --git a/tests/data/boolean1_frozen.json b/tests/data/boolean1_frozen.json new file mode 100644 index 0000000..653d68a --- /dev/null +++ b/tests/data/boolean1_frozen.json @@ -0,0 +1 @@ +{"schema": {"options": {"properties": {"options.boolean": {"type": "boolean", "title": "Boolean 1 frozen"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.boolean": {"readOnly": true}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"options.boolean": {"clearable": true}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/boolean1_frozen.owner b/tests/data/boolean1_frozen.owner similarity index 100% rename from test/data/boolean1_frozen.owner rename to tests/data/boolean1_frozen.owner diff --git a/test/data/boolean1_frozen.prop b/tests/data/boolean1_frozen.prop similarity index 100% rename from test/data/boolean1_frozen.prop rename to tests/data/boolean1_frozen.prop diff --git a/test/data/boolean1_frozen.prop2 b/tests/data/boolean1_frozen.prop2 similarity index 100% rename from test/data/boolean1_frozen.prop2 rename to tests/data/boolean1_frozen.prop2 diff --git a/test/data/choice1.dict b/tests/data/choice1.dict similarity index 100% rename from test/data/choice1.dict rename to tests/data/choice1.dict diff --git a/test/data/choice1.info b/tests/data/choice1.info similarity index 100% rename from test/data/choice1.info rename to tests/data/choice1.info diff --git a/tests/data/choice1.json b/tests/data/choice1.json new file mode 100644 index 0000000..4a02a4e --- /dev/null +++ b/tests/data/choice1.json @@ -0,0 +1 @@ +{"schema": {"options": {"properties": {"options.choice": {"type": "choice", "enum": ["", "choice 1", "choice 2"], "title": "Choice description"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "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"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/choice1.owner b/tests/data/choice1.owner similarity index 100% rename from test/data/choice1.owner rename to tests/data/choice1.owner diff --git a/test/data/choice1.prop b/tests/data/choice1.prop similarity index 100% rename from test/data/choice1.prop rename to tests/data/choice1.prop diff --git a/test/data/choice1.prop2 b/tests/data/choice1.prop2 similarity index 100% rename from test/data/choice1.prop2 rename to tests/data/choice1.prop2 diff --git a/test/data/choice1_frozen.dict b/tests/data/choice1_frozen.dict similarity index 100% rename from test/data/choice1_frozen.dict rename to tests/data/choice1_frozen.dict diff --git a/test/data/choice1_frozen.info b/tests/data/choice1_frozen.info similarity index 100% rename from test/data/choice1_frozen.info rename to tests/data/choice1_frozen.info diff --git a/tests/data/choice1_frozen.json b/tests/data/choice1_frozen.json new file mode 100644 index 0000000..4c968b9 --- /dev/null +++ b/tests/data/choice1_frozen.json @@ -0,0 +1 @@ +{"schema": {"options": {"properties": {"options.choice": {"type": "choice", "enum": ["", "choice 1", "choice 2"], "title": "Choice description frozen"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.choice": {"readOnly": 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"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/choice1_frozen.owner b/tests/data/choice1_frozen.owner similarity index 100% rename from test/data/choice1_frozen.owner rename to tests/data/choice1_frozen.owner diff --git a/test/data/choice1_frozen.prop b/tests/data/choice1_frozen.prop similarity index 100% rename from test/data/choice1_frozen.prop rename to tests/data/choice1_frozen.prop diff --git a/test/data/choice1_frozen.prop2 b/tests/data/choice1_frozen.prop2 similarity index 100% rename from test/data/choice1_frozen.prop2 rename to tests/data/choice1_frozen.prop2 diff --git a/test/data/choice1_leadership.dict b/tests/data/choice1_leadership.dict similarity index 100% rename from test/data/choice1_leadership.dict rename to tests/data/choice1_leadership.dict diff --git a/test/data/choice1_leadership.info b/tests/data/choice1_leadership.info similarity index 100% rename from test/data/choice1_leadership.info rename to tests/data/choice1_leadership.info diff --git a/tests/data/choice1_leadership.json b/tests/data/choice1_leadership.json new file mode 100644 index 0000000..a0b6d14 --- /dev/null +++ b/tests/data/choice1_leadership.json @@ -0,0 +1 @@ +{"schema": {"options": {"properties": {"options.choice1": {"properties": {"options.choice1.choice1": {"type": "choice", "isMulti": true, "enum": ["choice 1", "choice 2"], "title": "Choice description leader"}, "options.choice1.choice2": {"type": "choice", "isMulti": true, "enum": ["", "choice 3", "choice 4"], "title": "Choice description follower 1"}, "options.choice1.choice3": {"type": "choice", "isMulti": true, "enum": ["", "choice 5", "choice 6"], "title": "Choice description follower 2"}, "options.choice1.choice4": {"type": "choice", "isMulti": true, "enum": ["", "choice 7", "choice 8"], "title": "Choice description follower 3"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": {"options.choice1.choice1": {"required": true}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"options.choice1.choice1": {"clearable": true, "type": "choice"}, "options.choice1.choice2": {"clearable": true, "type": "choice"}, "options.choice1.choice3": {"clearable": true, "type": "choice"}, "options.choice1.choice4": {"clearable": true, "type": "choice"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/choice1_leadership.owner b/tests/data/choice1_leadership.owner similarity index 100% rename from test/data/choice1_leadership.owner rename to tests/data/choice1_leadership.owner diff --git a/test/data/choice1_leadership.prop b/tests/data/choice1_leadership.prop similarity index 100% rename from test/data/choice1_leadership.prop rename to tests/data/choice1_leadership.prop diff --git a/test/data/choice1_leadership.prop2 b/tests/data/choice1_leadership.prop2 similarity index 100% rename from test/data/choice1_leadership.prop2 rename to tests/data/choice1_leadership.prop2 diff --git a/test/data/choice1_leadership_hidden.dict b/tests/data/choice1_leadership_hidden.dict similarity index 100% rename from test/data/choice1_leadership_hidden.dict rename to tests/data/choice1_leadership_hidden.dict diff --git a/test/data/choice1_leadership_hidden.info b/tests/data/choice1_leadership_hidden.info similarity index 100% rename from test/data/choice1_leadership_hidden.info rename to tests/data/choice1_leadership_hidden.info diff --git a/tests/data/choice1_leadership_hidden.json b/tests/data/choice1_leadership_hidden.json new file mode 100644 index 0000000..e063c25 --- /dev/null +++ b/tests/data/choice1_leadership_hidden.json @@ -0,0 +1 @@ +{"schema": {"options": {"properties": {"options.choice1": {"properties": {"options.choice1.choice1": {"type": "choice", "isMulti": true, "enum": ["choice 1", "choice 2"], "title": "Choice description leader"}, "options.choice1.choice2": {"type": "choice", "isMulti": true, "enum": ["", "choice 3", "choice 4"], "title": "Choice description follower 1"}, "options.choice1.choice3": {"type": "choice", "isMulti": true, "enum": ["", "choice 5", "choice 6"], "title": "Choice description follower 2 hidden"}, "options.choice1.choice4": {"type": "choice", "isMulti": true, "enum": ["", "choice 7", "choice 8"], "title": "Choice description follower 3"}}, "type": "array", "title": "Slave 2 is hidden"}}, "type": "object", "title": "Common configuration 2"}}, "model": {"options.choice1.choice1": {"required": true}, "options.choice1.choice3": {"null": {"display": false}}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"options.choice1.choice1": {"clearable": true, "type": "choice"}, "options.choice1.choice2": {"clearable": true, "type": "choice"}, "options.choice1.choice3": {"clearable": true, "type": "choice"}, "options.choice1.choice4": {"clearable": true, "type": "choice"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/choice1_leadership_hidden.owner b/tests/data/choice1_leadership_hidden.owner similarity index 100% rename from test/data/choice1_leadership_hidden.owner rename to tests/data/choice1_leadership_hidden.owner diff --git a/test/data/choice1_leadership_hidden.prop b/tests/data/choice1_leadership_hidden.prop similarity index 100% rename from test/data/choice1_leadership_hidden.prop rename to tests/data/choice1_leadership_hidden.prop diff --git a/test/data/choice1_leadership_hidden.prop2 b/tests/data/choice1_leadership_hidden.prop2 similarity index 100% rename from test/data/choice1_leadership_hidden.prop2 rename to tests/data/choice1_leadership_hidden.prop2 diff --git a/test/data/choice1_leadership_value.dict b/tests/data/choice1_leadership_value.dict similarity index 100% rename from test/data/choice1_leadership_value.dict rename to tests/data/choice1_leadership_value.dict diff --git a/test/data/choice1_leadership_value.info b/tests/data/choice1_leadership_value.info similarity index 100% rename from test/data/choice1_leadership_value.info rename to tests/data/choice1_leadership_value.info diff --git a/tests/data/choice1_leadership_value.json b/tests/data/choice1_leadership_value.json new file mode 100644 index 0000000..cd85e5d --- /dev/null +++ b/tests/data/choice1_leadership_value.json @@ -0,0 +1 @@ +{"schema": {"options": {"properties": {"options.choice1": {"properties": {"options.choice1.choice1": {"type": "choice", "isMulti": true, "enum": ["choice 1", "choice 2"], "title": "Choice leader"}, "options.choice1.choice2": {"type": "choice", "isMulti": true, "enum": ["", "choice 3", "choice 4"], "title": "Choice follower 1"}, "options.choice1.choice3": {"type": "choice", "isMulti": true, "enum": ["", "choice 5", "choice 6"], "title": "Choice follower 2"}, "options.choice1.choice4": {"type": "choice", "isMulti": true, "enum": ["", "choice 7", "choice 8"], "title": "Choice follower 3"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": {"options.choice1.choice1": {"required": true, "value": ["choice 2"], "owner": "user"}, "options.choice1.choice2": {"0": {"value": "choice 4", "owner": "user"}}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"options.choice1.choice1": {"clearable": true, "type": "choice"}, "options.choice1.choice2": {"clearable": true, "type": "choice"}, "options.choice1.choice3": {"clearable": true, "type": "choice"}, "options.choice1.choice4": {"clearable": true, "type": "choice"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/choice1_leadership_value.owner b/tests/data/choice1_leadership_value.owner similarity index 100% rename from test/data/choice1_leadership_value.owner rename to tests/data/choice1_leadership_value.owner diff --git a/test/data/choice1_leadership_value.prop b/tests/data/choice1_leadership_value.prop similarity index 100% rename from test/data/choice1_leadership_value.prop rename to tests/data/choice1_leadership_value.prop diff --git a/test/data/choice1_leadership_value.prop2 b/tests/data/choice1_leadership_value.prop2 similarity index 100% rename from test/data/choice1_leadership_value.prop2 rename to tests/data/choice1_leadership_value.prop2 diff --git a/test/data/choice1_multi.dict b/tests/data/choice1_multi.dict similarity index 100% rename from test/data/choice1_multi.dict rename to tests/data/choice1_multi.dict diff --git a/test/data/choice1_multi.info b/tests/data/choice1_multi.info similarity index 100% rename from test/data/choice1_multi.info rename to tests/data/choice1_multi.info diff --git a/tests/data/choice1_multi.json b/tests/data/choice1_multi.json new file mode 100644 index 0000000..afe8391 --- /dev/null +++ b/tests/data/choice1_multi.json @@ -0,0 +1 @@ +{"schema": {"options": {"properties": {"options.choice": {"type": "choice", "isMulti": true, "enum": ["choice 1", "choice 2"], "title": "Choice description"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.choice": {"required": 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"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/choice1_multi.owner b/tests/data/choice1_multi.owner similarity index 100% rename from test/data/choice1_multi.owner rename to tests/data/choice1_multi.owner diff --git a/test/data/choice1_multi.prop b/tests/data/choice1_multi.prop similarity index 100% rename from test/data/choice1_multi.prop rename to tests/data/choice1_multi.prop diff --git a/test/data/choice1_multi.prop2 b/tests/data/choice1_multi.prop2 similarity index 100% rename from test/data/choice1_multi.prop2 rename to tests/data/choice1_multi.prop2 diff --git a/test/data/choice1_rename.dict b/tests/data/choice1_rename.dict similarity index 100% rename from test/data/choice1_rename.dict rename to tests/data/choice1_rename.dict diff --git a/test/data/choice1_rename.info b/tests/data/choice1_rename.info similarity index 100% rename from test/data/choice1_rename.info rename to tests/data/choice1_rename.info diff --git a/tests/data/choice1_rename.json b/tests/data/choice1_rename.json new file mode 100644 index 0000000..4a02a4e --- /dev/null +++ b/tests/data/choice1_rename.json @@ -0,0 +1 @@ +{"schema": {"options": {"properties": {"options.choice": {"type": "choice", "enum": ["", "choice 1", "choice 2"], "title": "Choice description"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "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"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/choice1_rename.owner b/tests/data/choice1_rename.owner similarity index 100% rename from test/data/choice1_rename.owner rename to tests/data/choice1_rename.owner diff --git a/test/data/choice1_rename.prop b/tests/data/choice1_rename.prop similarity index 100% rename from test/data/choice1_rename.prop rename to tests/data/choice1_rename.prop diff --git a/test/data/choice1_rename.prop2 b/tests/data/choice1_rename.prop2 similarity index 100% rename from test/data/choice1_rename.prop2 rename to tests/data/choice1_rename.prop2 diff --git a/test/data/choice1_requires.dict b/tests/data/choice1_requires.dict similarity index 100% rename from test/data/choice1_requires.dict rename to tests/data/choice1_requires.dict diff --git a/test/data/choice1_requires.info b/tests/data/choice1_requires.info similarity index 100% rename from test/data/choice1_requires.info rename to tests/data/choice1_requires.info diff --git a/tests/data/choice1_requires.json b/tests/data/choice1_requires.json new file mode 100644 index 0000000..4c2934f --- /dev/null +++ b/tests/data/choice1_requires.json @@ -0,0 +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 diff --git a/test/data/choice1_requires.owner b/tests/data/choice1_requires.owner similarity index 100% rename from test/data/choice1_requires.owner rename to tests/data/choice1_requires.owner diff --git a/test/data/choice1_requires.prop b/tests/data/choice1_requires.prop similarity index 100% rename from test/data/choice1_requires.prop rename to tests/data/choice1_requires.prop diff --git a/test/data/choice1_requires.prop2 b/tests/data/choice1_requires.prop2 similarity index 100% rename from test/data/choice1_requires.prop2 rename to tests/data/choice1_requires.prop2 diff --git a/test/data/date1.dict b/tests/data/date1.dict similarity index 100% rename from test/data/date1.dict rename to tests/data/date1.dict diff --git a/test/data/date1.info b/tests/data/date1.info similarity index 100% rename from test/data/date1.info rename to tests/data/date1.info diff --git a/tests/data/date1.json b/tests/data/date1.json new file mode 100644 index 0000000..0dbdabd --- /dev/null +++ b/tests/data/date1.json @@ -0,0 +1 @@ +{"schema": {"options": {"properties": {"options.date": {"type": "date", "title": "Date description"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"options.date": {"clearable": true, "remote": true}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/date1.owner b/tests/data/date1.owner similarity index 100% rename from test/data/date1.owner rename to tests/data/date1.owner diff --git a/test/data/date1.prop b/tests/data/date1.prop similarity index 100% rename from test/data/date1.prop rename to tests/data/date1.prop diff --git a/test/data/date1.prop2 b/tests/data/date1.prop2 similarity index 100% rename from test/data/date1.prop2 rename to tests/data/date1.prop2 diff --git a/test/data/date1_frozen.dict b/tests/data/date1_frozen.dict similarity index 100% rename from test/data/date1_frozen.dict rename to tests/data/date1_frozen.dict diff --git a/test/data/date1_frozen.info b/tests/data/date1_frozen.info similarity index 100% rename from test/data/date1_frozen.info rename to tests/data/date1_frozen.info diff --git a/tests/data/date1_frozen.json b/tests/data/date1_frozen.json new file mode 100644 index 0000000..9e9223b --- /dev/null +++ b/tests/data/date1_frozen.json @@ -0,0 +1 @@ +{"schema": {"options": {"properties": {"options.date": {"type": "date", "title": "Date description frozen"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.date": {"readOnly": true}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"options.date": {"clearable": true, "remote": true}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/date1_frozen.owner b/tests/data/date1_frozen.owner similarity index 100% rename from test/data/date1_frozen.owner rename to tests/data/date1_frozen.owner diff --git a/test/data/date1_frozen.prop b/tests/data/date1_frozen.prop similarity index 100% rename from test/data/date1_frozen.prop rename to tests/data/date1_frozen.prop diff --git a/test/data/date1_frozen.prop2 b/tests/data/date1_frozen.prop2 similarity index 100% rename from test/data/date1_frozen.prop2 rename to tests/data/date1_frozen.prop2 diff --git a/test/data/filename1.dict b/tests/data/filename1.dict similarity index 100% rename from test/data/filename1.dict rename to tests/data/filename1.dict diff --git a/test/data/filename1.info b/tests/data/filename1.info similarity index 100% rename from test/data/filename1.info rename to tests/data/filename1.info diff --git a/tests/data/filename1.json b/tests/data/filename1.json new file mode 100644 index 0000000..9fa8cdc --- /dev/null +++ b/tests/data/filename1.json @@ -0,0 +1 @@ +{"schema": {"usbpath": {"type": "filename", "title": "Chemin d'acc\u00e8s"}}, "model": {"usbpath": {"required": true}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"usbpath": {"clearable": true, "pattern": "^[a-zA-Z0-9\\-\\._~/+]+$", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/filename1.owner b/tests/data/filename1.owner similarity index 100% rename from test/data/filename1.owner rename to tests/data/filename1.owner diff --git a/test/data/filename1.prop b/tests/data/filename1.prop similarity index 100% rename from test/data/filename1.prop rename to tests/data/filename1.prop diff --git a/test/data/filename1.prop2 b/tests/data/filename1.prop2 similarity index 100% rename from test/data/filename1.prop2 rename to tests/data/filename1.prop2 diff --git a/test/data/hostname1.dict b/tests/data/hostname1.dict similarity index 100% rename from test/data/hostname1.dict rename to tests/data/hostname1.dict diff --git a/test/data/hostname1.info b/tests/data/hostname1.info similarity index 100% rename from test/data/hostname1.info rename to tests/data/hostname1.info diff --git a/tests/data/hostname1.json b/tests/data/hostname1.json new file mode 100644 index 0000000..e0a6676 --- /dev/null +++ b/tests/data/hostname1.json @@ -0,0 +1 @@ +{"schema": {"options": {"properties": {"options.hostname1": {"type": "domainname", "title": "Domainname Description"}, "options.hostname2": {"type": "domainname", "title": "Domainname without dot Description"}, "options.hostname3": {"type": "domainname", "title": "Hostname or IP Description"}, "options.hostname4": {"type": "domainname", "title": "Netbios Description"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"options.hostname1": {"clearable": true, "pattern": "^((?!-)[a-z0-9-]{1,63}\\.){1,}[a-z0-9-]{1,63}$", "type": "input"}, "options.hostname2": {"clearable": true, "pattern": "^((?!-)[a-z0-9-]{0,63}\\.){0,}[a-z0-9-]{1,63}$", "type": "input"}, "options.hostname3": {"clearable": true, "pattern": "^(?:((?!-)[a-z0-9-]{1,63})|(?:(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)))$", "type": "input"}, "options.hostname4": {"clearable": true, "pattern": "^((?!-)[a-z0-9-]{1,15})$", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/hostname1.owner b/tests/data/hostname1.owner similarity index 100% rename from test/data/hostname1.owner rename to tests/data/hostname1.owner diff --git a/test/data/hostname1.prop b/tests/data/hostname1.prop similarity index 100% rename from test/data/hostname1.prop rename to tests/data/hostname1.prop diff --git a/test/data/hostname1.prop2 b/tests/data/hostname1.prop2 similarity index 100% rename from test/data/hostname1.prop2 rename to tests/data/hostname1.prop2 diff --git a/test/data/ip1.dict b/tests/data/ip1.dict similarity index 100% rename from test/data/ip1.dict rename to tests/data/ip1.dict diff --git a/test/data/ip1.info b/tests/data/ip1.info similarity index 100% rename from test/data/ip1.info rename to tests/data/ip1.info diff --git a/tests/data/ip1.json b/tests/data/ip1.json new file mode 100644 index 0000000..023c095 --- /dev/null +++ b/tests/data/ip1.json @@ -0,0 +1 @@ +{"schema": {"options": {"properties": {"options.ip": {"type": "ip", "title": "IP Description"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"options.ip": {"clearable": true, "remote": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/ip1.owner b/tests/data/ip1.owner similarity index 100% rename from test/data/ip1.owner rename to tests/data/ip1.owner diff --git a/test/data/ip1.prop b/tests/data/ip1.prop similarity index 100% rename from test/data/ip1.prop rename to tests/data/ip1.prop diff --git a/test/data/ip1.prop2 b/tests/data/ip1.prop2 similarity index 100% rename from test/data/ip1.prop2 rename to tests/data/ip1.prop2 diff --git a/test/data/ip1_frozen.dict b/tests/data/ip1_frozen.dict similarity index 100% rename from test/data/ip1_frozen.dict rename to tests/data/ip1_frozen.dict diff --git a/test/data/ip1_frozen.info b/tests/data/ip1_frozen.info similarity index 100% rename from test/data/ip1_frozen.info rename to tests/data/ip1_frozen.info diff --git a/tests/data/ip1_frozen.json b/tests/data/ip1_frozen.json new file mode 100644 index 0000000..2d6d5c4 --- /dev/null +++ b/tests/data/ip1_frozen.json @@ -0,0 +1 @@ +{"schema": {"options": {"properties": {"options.ip": {"type": "ip", "title": "IP Description frozen"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.ip": {"readOnly": true}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"options.ip": {"clearable": true, "remote": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/ip1_frozen.owner b/tests/data/ip1_frozen.owner similarity index 100% rename from test/data/ip1_frozen.owner rename to tests/data/ip1_frozen.owner diff --git a/test/data/ip1_frozen.prop b/tests/data/ip1_frozen.prop similarity index 100% rename from test/data/ip1_frozen.prop rename to tests/data/ip1_frozen.prop diff --git a/test/data/ip1_frozen.prop2 b/tests/data/ip1_frozen.prop2 similarity index 100% rename from test/data/ip1_frozen.prop2 rename to tests/data/ip1_frozen.prop2 diff --git a/test/data/mail1.dict b/tests/data/mail1.dict similarity index 100% rename from test/data/mail1.dict rename to tests/data/mail1.dict diff --git a/test/data/mail1.info b/tests/data/mail1.info similarity index 100% rename from test/data/mail1.info rename to tests/data/mail1.info diff --git a/tests/data/mail1.json b/tests/data/mail1.json new file mode 100644 index 0000000..62a5eb3 --- /dev/null +++ b/tests/data/mail1.json @@ -0,0 +1 @@ +{"schema": {"options": {"properties": {"options.mail": {"type": "email", "title": "Mail Description"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"options.mail": {"clearable": true, "pattern": "^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\\.[a-zA-Z0-9-]+)*$", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/mail1.owner b/tests/data/mail1.owner similarity index 100% rename from test/data/mail1.owner rename to tests/data/mail1.owner diff --git a/test/data/mail1.prop b/tests/data/mail1.prop similarity index 100% rename from test/data/mail1.prop rename to tests/data/mail1.prop diff --git a/test/data/mail1.prop2 b/tests/data/mail1.prop2 similarity index 100% rename from test/data/mail1.prop2 rename to tests/data/mail1.prop2 diff --git a/test/data/number1.dict b/tests/data/number1.dict similarity index 100% rename from test/data/number1.dict rename to tests/data/number1.dict diff --git a/test/data/number1.info b/tests/data/number1.info similarity index 100% rename from test/data/number1.info rename to tests/data/number1.info diff --git a/tests/data/number1.json b/tests/data/number1.json new file mode 100644 index 0000000..c48654b --- /dev/null +++ b/tests/data/number1.json @@ -0,0 +1 @@ +{"schema": {"options": {"properties": {"options.integer": {"type": "integer", "title": "integer 1"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "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/test/data/number1.owner b/tests/data/number1.owner similarity index 100% rename from test/data/number1.owner rename to tests/data/number1.owner diff --git a/test/data/number1.prop b/tests/data/number1.prop similarity index 100% rename from test/data/number1.prop rename to tests/data/number1.prop diff --git a/test/data/number1.prop2 b/tests/data/number1.prop2 similarity index 100% rename from test/data/number1.prop2 rename to tests/data/number1.prop2 diff --git a/test/data/number1_frozen.dict b/tests/data/number1_frozen.dict similarity index 100% rename from test/data/number1_frozen.dict rename to tests/data/number1_frozen.dict diff --git a/test/data/number1_frozen.info b/tests/data/number1_frozen.info similarity index 100% rename from test/data/number1_frozen.info rename to tests/data/number1_frozen.info diff --git a/tests/data/number1_frozen.json b/tests/data/number1_frozen.json new file mode 100644 index 0000000..2a9c447 --- /dev/null +++ b/tests/data/number1_frozen.json @@ -0,0 +1 @@ +{"schema": {"options": {"properties": {"options.integer": {"type": "integer", "title": "integer 1 frozen"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.integer": {"readOnly": true}}, "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/test/data/number1_frozen.owner b/tests/data/number1_frozen.owner similarity index 100% rename from test/data/number1_frozen.owner rename to tests/data/number1_frozen.owner diff --git a/test/data/number1_frozen.prop b/tests/data/number1_frozen.prop similarity index 100% rename from test/data/number1_frozen.prop rename to tests/data/number1_frozen.prop diff --git a/test/data/number1_frozen.prop2 b/tests/data/number1_frozen.prop2 similarity index 100% rename from test/data/number1_frozen.prop2 rename to tests/data/number1_frozen.prop2 diff --git a/test/data/number1_mod_value.dict b/tests/data/number1_mod_value.dict similarity index 100% rename from test/data/number1_mod_value.dict rename to tests/data/number1_mod_value.dict diff --git a/test/data/number1_mod_value.info b/tests/data/number1_mod_value.info similarity index 100% rename from test/data/number1_mod_value.info rename to tests/data/number1_mod_value.info diff --git a/tests/data/number1_mod_value.json b/tests/data/number1_mod_value.json new file mode 100644 index 0000000..75f7d8a --- /dev/null +++ b/tests/data/number1_mod_value.json @@ -0,0 +1 @@ +{"schema": {"options": {"properties": {"options.integer": {"type": "integer", "value": 0, "title": "integer 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.integer": {"value": 3, "owner": "user"}}, "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/test/data/number1_mod_value.owner b/tests/data/number1_mod_value.owner similarity index 100% rename from test/data/number1_mod_value.owner rename to tests/data/number1_mod_value.owner diff --git a/test/data/number1_mod_value.prop b/tests/data/number1_mod_value.prop similarity index 100% rename from test/data/number1_mod_value.prop rename to tests/data/number1_mod_value.prop diff --git a/test/data/number1_mod_value.prop2 b/tests/data/number1_mod_value.prop2 similarity index 100% rename from test/data/number1_mod_value.prop2 rename to tests/data/number1_mod_value.prop2 diff --git a/test/data/number1_value.dict b/tests/data/number1_value.dict similarity index 100% rename from test/data/number1_value.dict rename to tests/data/number1_value.dict diff --git a/test/data/number1_value.info b/tests/data/number1_value.info similarity index 100% rename from test/data/number1_value.info rename to tests/data/number1_value.info diff --git a/tests/data/number1_value.json b/tests/data/number1_value.json new file mode 100644 index 0000000..aee2ab9 --- /dev/null +++ b/tests/data/number1_value.json @@ -0,0 +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 diff --git a/test/data/number1_value.owner b/tests/data/number1_value.owner similarity index 100% rename from test/data/number1_value.owner rename to tests/data/number1_value.owner diff --git a/test/data/number1_value.prop b/tests/data/number1_value.prop similarity index 100% rename from test/data/number1_value.prop rename to tests/data/number1_value.prop diff --git a/test/data/number1_value.prop2 b/tests/data/number1_value.prop2 similarity index 100% rename from test/data/number1_value.prop2 rename to tests/data/number1_value.prop2 diff --git a/test/data/subconfig_boolean1.dict b/tests/data/subconfig_boolean1.dict similarity index 100% rename from test/data/subconfig_boolean1.dict rename to tests/data/subconfig_boolean1.dict diff --git a/test/data/subconfig_boolean1.info b/tests/data/subconfig_boolean1.info similarity index 100% rename from test/data/subconfig_boolean1.info rename to tests/data/subconfig_boolean1.info diff --git a/tests/data/subconfig_boolean1.json b/tests/data/subconfig_boolean1.json new file mode 100644 index 0000000..1e78b8e --- /dev/null +++ b/tests/data/subconfig_boolean1.json @@ -0,0 +1 @@ +{"schema": {"boolean1.options": {"properties": {"boolean1.options.boolean": {"type": "boolean", "title": "Boolean 1"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"boolean1.options.boolean": {"clearable": true}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_boolean1.owner b/tests/data/subconfig_boolean1.owner similarity index 100% rename from test/data/subconfig_boolean1.owner rename to tests/data/subconfig_boolean1.owner diff --git a/test/data/subconfig_boolean1.prop b/tests/data/subconfig_boolean1.prop similarity index 100% rename from test/data/subconfig_boolean1.prop rename to tests/data/subconfig_boolean1.prop diff --git a/test/data/subconfig_boolean1.prop2 b/tests/data/subconfig_boolean1.prop2 similarity index 100% rename from test/data/subconfig_boolean1.prop2 rename to tests/data/subconfig_boolean1.prop2 diff --git a/test/data/subconfig_boolean1_frozen.dict b/tests/data/subconfig_boolean1_frozen.dict similarity index 100% rename from test/data/subconfig_boolean1_frozen.dict rename to tests/data/subconfig_boolean1_frozen.dict diff --git a/test/data/subconfig_boolean1_frozen.info b/tests/data/subconfig_boolean1_frozen.info similarity index 100% rename from test/data/subconfig_boolean1_frozen.info rename to tests/data/subconfig_boolean1_frozen.info diff --git a/tests/data/subconfig_boolean1_frozen.json b/tests/data/subconfig_boolean1_frozen.json new file mode 100644 index 0000000..364ba73 --- /dev/null +++ b/tests/data/subconfig_boolean1_frozen.json @@ -0,0 +1 @@ +{"schema": {"boolean1_frozen.options": {"properties": {"boolean1_frozen.options.boolean": {"type": "boolean", "title": "Boolean 1 frozen"}}, "type": "object", "title": "Common configuration"}}, "model": {"boolean1_frozen.options.boolean": {"readOnly": true}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"boolean1_frozen.options.boolean": {"clearable": true}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_boolean1_frozen.owner b/tests/data/subconfig_boolean1_frozen.owner similarity index 100% rename from test/data/subconfig_boolean1_frozen.owner rename to tests/data/subconfig_boolean1_frozen.owner diff --git a/test/data/subconfig_boolean1_frozen.prop b/tests/data/subconfig_boolean1_frozen.prop similarity index 100% rename from test/data/subconfig_boolean1_frozen.prop rename to tests/data/subconfig_boolean1_frozen.prop diff --git a/test/data/subconfig_boolean1_frozen.prop2 b/tests/data/subconfig_boolean1_frozen.prop2 similarity index 100% rename from test/data/subconfig_boolean1_frozen.prop2 rename to tests/data/subconfig_boolean1_frozen.prop2 diff --git a/test/data/subconfig_choice1.dict b/tests/data/subconfig_choice1.dict similarity index 100% rename from test/data/subconfig_choice1.dict rename to tests/data/subconfig_choice1.dict diff --git a/test/data/subconfig_choice1.info b/tests/data/subconfig_choice1.info similarity index 100% rename from test/data/subconfig_choice1.info rename to tests/data/subconfig_choice1.info diff --git a/tests/data/subconfig_choice1.json b/tests/data/subconfig_choice1.json new file mode 100644 index 0000000..6016165 --- /dev/null +++ b/tests/data/subconfig_choice1.json @@ -0,0 +1 @@ +{"schema": {"choice1.options": {"properties": {"choice1.options.choice": {"type": "choice", "enum": ["", "choice 1", "choice 2"], "title": "Choice description"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"choice1.options.choice": {"clearable": true, "type": "choice"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_choice1.owner b/tests/data/subconfig_choice1.owner similarity index 100% rename from test/data/subconfig_choice1.owner rename to tests/data/subconfig_choice1.owner diff --git a/test/data/subconfig_choice1.prop b/tests/data/subconfig_choice1.prop similarity index 100% rename from test/data/subconfig_choice1.prop rename to tests/data/subconfig_choice1.prop diff --git a/test/data/subconfig_choice1.prop2 b/tests/data/subconfig_choice1.prop2 similarity index 100% rename from test/data/subconfig_choice1.prop2 rename to tests/data/subconfig_choice1.prop2 diff --git a/test/data/subconfig_choice1_frozen.dict b/tests/data/subconfig_choice1_frozen.dict similarity index 100% rename from test/data/subconfig_choice1_frozen.dict rename to tests/data/subconfig_choice1_frozen.dict diff --git a/test/data/subconfig_choice1_frozen.info b/tests/data/subconfig_choice1_frozen.info similarity index 100% rename from test/data/subconfig_choice1_frozen.info rename to tests/data/subconfig_choice1_frozen.info diff --git a/tests/data/subconfig_choice1_frozen.json b/tests/data/subconfig_choice1_frozen.json new file mode 100644 index 0000000..d73fb65 --- /dev/null +++ b/tests/data/subconfig_choice1_frozen.json @@ -0,0 +1 @@ +{"schema": {"choice1_frozen.options": {"properties": {"choice1_frozen.options.choice": {"type": "choice", "enum": ["", "choice 1", "choice 2"], "title": "Choice description frozen"}}, "type": "object", "title": "Common configuration"}}, "model": {"choice1_frozen.options.choice": {"readOnly": true}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"choice1_frozen.options.choice": {"clearable": true, "type": "choice"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_choice1_frozen.owner b/tests/data/subconfig_choice1_frozen.owner similarity index 100% rename from test/data/subconfig_choice1_frozen.owner rename to tests/data/subconfig_choice1_frozen.owner diff --git a/test/data/subconfig_choice1_frozen.prop b/tests/data/subconfig_choice1_frozen.prop similarity index 100% rename from test/data/subconfig_choice1_frozen.prop rename to tests/data/subconfig_choice1_frozen.prop diff --git a/test/data/subconfig_choice1_frozen.prop2 b/tests/data/subconfig_choice1_frozen.prop2 similarity index 100% rename from test/data/subconfig_choice1_frozen.prop2 rename to tests/data/subconfig_choice1_frozen.prop2 diff --git a/test/data/subconfig_choice1_leadership.dict b/tests/data/subconfig_choice1_leadership.dict similarity index 100% rename from test/data/subconfig_choice1_leadership.dict rename to tests/data/subconfig_choice1_leadership.dict diff --git a/test/data/subconfig_choice1_leadership.info b/tests/data/subconfig_choice1_leadership.info similarity index 100% rename from test/data/subconfig_choice1_leadership.info rename to tests/data/subconfig_choice1_leadership.info diff --git a/tests/data/subconfig_choice1_leadership.json b/tests/data/subconfig_choice1_leadership.json new file mode 100644 index 0000000..9dbec43 --- /dev/null +++ b/tests/data/subconfig_choice1_leadership.json @@ -0,0 +1 @@ +{"schema": {"choice1_leadership.options": {"properties": {"choice1_leadership.options.choice1": {"properties": {"choice1_leadership.options.choice1.choice1": {"type": "choice", "isMulti": true, "enum": ["choice 1", "choice 2"], "title": "Choice description leader"}, "choice1_leadership.options.choice1.choice2": {"type": "choice", "isMulti": true, "enum": ["", "choice 3", "choice 4"], "title": "Choice description follower 1"}, "choice1_leadership.options.choice1.choice3": {"type": "choice", "isMulti": true, "enum": ["", "choice 5", "choice 6"], "title": "Choice description follower 2"}, "choice1_leadership.options.choice1.choice4": {"type": "choice", "isMulti": true, "enum": ["", "choice 7", "choice 8"], "title": "Choice description follower 3"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": {"choice1_leadership.options.choice1.choice1": {"required": true}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"choice1_leadership.options.choice1.choice1": {"clearable": true, "type": "choice"}, "choice1_leadership.options.choice1.choice2": {"clearable": true, "type": "choice"}, "choice1_leadership.options.choice1.choice3": {"clearable": true, "type": "choice"}, "choice1_leadership.options.choice1.choice4": {"clearable": true, "type": "choice"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_choice1_leadership.owner b/tests/data/subconfig_choice1_leadership.owner similarity index 100% rename from test/data/subconfig_choice1_leadership.owner rename to tests/data/subconfig_choice1_leadership.owner diff --git a/test/data/subconfig_choice1_leadership.prop b/tests/data/subconfig_choice1_leadership.prop similarity index 100% rename from test/data/subconfig_choice1_leadership.prop rename to tests/data/subconfig_choice1_leadership.prop diff --git a/test/data/subconfig_choice1_leadership.prop2 b/tests/data/subconfig_choice1_leadership.prop2 similarity index 100% rename from test/data/subconfig_choice1_leadership.prop2 rename to tests/data/subconfig_choice1_leadership.prop2 diff --git a/test/data/subconfig_choice1_leadership_hidden.dict b/tests/data/subconfig_choice1_leadership_hidden.dict similarity index 100% rename from test/data/subconfig_choice1_leadership_hidden.dict rename to tests/data/subconfig_choice1_leadership_hidden.dict diff --git a/test/data/subconfig_choice1_leadership_hidden.info b/tests/data/subconfig_choice1_leadership_hidden.info similarity index 100% rename from test/data/subconfig_choice1_leadership_hidden.info rename to tests/data/subconfig_choice1_leadership_hidden.info diff --git a/tests/data/subconfig_choice1_leadership_hidden.json b/tests/data/subconfig_choice1_leadership_hidden.json new file mode 100644 index 0000000..ca24fa9 --- /dev/null +++ b/tests/data/subconfig_choice1_leadership_hidden.json @@ -0,0 +1 @@ +{"schema": {"choice1_leadership_hidden.options": {"properties": {"choice1_leadership_hidden.options.choice1": {"properties": {"choice1_leadership_hidden.options.choice1.choice1": {"type": "choice", "isMulti": true, "enum": ["choice 1", "choice 2"], "title": "Choice description leader"}, "choice1_leadership_hidden.options.choice1.choice2": {"type": "choice", "isMulti": true, "enum": ["", "choice 3", "choice 4"], "title": "Choice description follower 1"}, "choice1_leadership_hidden.options.choice1.choice3": {"type": "choice", "isMulti": true, "enum": ["", "choice 5", "choice 6"], "title": "Choice description follower 2 hidden"}, "choice1_leadership_hidden.options.choice1.choice4": {"type": "choice", "isMulti": true, "enum": ["", "choice 7", "choice 8"], "title": "Choice description follower 3"}}, "type": "array", "title": "Slave 2 is hidden"}}, "type": "object", "title": "Common configuration 2"}}, "model": {"choice1_leadership_hidden.options.choice1.choice1": {"required": true}, "choice1_leadership_hidden.options.choice1.choice3": {"null": {"display": false}}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"choice1_leadership_hidden.options.choice1.choice1": {"clearable": true, "type": "choice"}, "choice1_leadership_hidden.options.choice1.choice2": {"clearable": true, "type": "choice"}, "choice1_leadership_hidden.options.choice1.choice3": {"clearable": true, "type": "choice"}, "choice1_leadership_hidden.options.choice1.choice4": {"clearable": true, "type": "choice"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_choice1_leadership_hidden.owner b/tests/data/subconfig_choice1_leadership_hidden.owner similarity index 100% rename from test/data/subconfig_choice1_leadership_hidden.owner rename to tests/data/subconfig_choice1_leadership_hidden.owner diff --git a/test/data/subconfig_choice1_leadership_hidden.prop b/tests/data/subconfig_choice1_leadership_hidden.prop similarity index 100% rename from test/data/subconfig_choice1_leadership_hidden.prop rename to tests/data/subconfig_choice1_leadership_hidden.prop diff --git a/test/data/subconfig_choice1_leadership_hidden.prop2 b/tests/data/subconfig_choice1_leadership_hidden.prop2 similarity index 100% rename from test/data/subconfig_choice1_leadership_hidden.prop2 rename to tests/data/subconfig_choice1_leadership_hidden.prop2 diff --git a/test/data/subconfig_choice1_leadership_value.dict b/tests/data/subconfig_choice1_leadership_value.dict similarity index 100% rename from test/data/subconfig_choice1_leadership_value.dict rename to tests/data/subconfig_choice1_leadership_value.dict diff --git a/test/data/subconfig_choice1_leadership_value.info b/tests/data/subconfig_choice1_leadership_value.info similarity index 100% rename from test/data/subconfig_choice1_leadership_value.info rename to tests/data/subconfig_choice1_leadership_value.info diff --git a/tests/data/subconfig_choice1_leadership_value.json b/tests/data/subconfig_choice1_leadership_value.json new file mode 100644 index 0000000..d948f17 --- /dev/null +++ b/tests/data/subconfig_choice1_leadership_value.json @@ -0,0 +1 @@ +{"schema": {"choice1_leadership_value.options": {"properties": {"choice1_leadership_value.options.choice1": {"properties": {"choice1_leadership_value.options.choice1.choice1": {"type": "choice", "isMulti": true, "enum": ["choice 1", "choice 2"], "title": "Choice leader"}, "choice1_leadership_value.options.choice1.choice2": {"type": "choice", "isMulti": true, "enum": ["", "choice 3", "choice 4"], "title": "Choice follower 1"}, "choice1_leadership_value.options.choice1.choice3": {"type": "choice", "isMulti": true, "enum": ["", "choice 5", "choice 6"], "title": "Choice follower 2"}, "choice1_leadership_value.options.choice1.choice4": {"type": "choice", "isMulti": true, "enum": ["", "choice 7", "choice 8"], "title": "Choice follower 3"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": {"choice1_leadership_value.options.choice1.choice1": {"required": true, "value": ["choice 2"], "owner": "user"}, "choice1_leadership_value.options.choice1.choice2": {"0": {"value": "choice 4", "owner": "user"}}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"choice1_leadership_value.options.choice1.choice1": {"clearable": true, "type": "choice"}, "choice1_leadership_value.options.choice1.choice2": {"clearable": true, "type": "choice"}, "choice1_leadership_value.options.choice1.choice3": {"clearable": true, "type": "choice"}, "choice1_leadership_value.options.choice1.choice4": {"clearable": true, "type": "choice"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_choice1_leadership_value.owner b/tests/data/subconfig_choice1_leadership_value.owner similarity index 100% rename from test/data/subconfig_choice1_leadership_value.owner rename to tests/data/subconfig_choice1_leadership_value.owner diff --git a/test/data/subconfig_choice1_leadership_value.prop b/tests/data/subconfig_choice1_leadership_value.prop similarity index 100% rename from test/data/subconfig_choice1_leadership_value.prop rename to tests/data/subconfig_choice1_leadership_value.prop diff --git a/test/data/subconfig_choice1_leadership_value.prop2 b/tests/data/subconfig_choice1_leadership_value.prop2 similarity index 100% rename from test/data/subconfig_choice1_leadership_value.prop2 rename to tests/data/subconfig_choice1_leadership_value.prop2 diff --git a/test/data/subconfig_choice1_multi.dict b/tests/data/subconfig_choice1_multi.dict similarity index 100% rename from test/data/subconfig_choice1_multi.dict rename to tests/data/subconfig_choice1_multi.dict diff --git a/test/data/subconfig_choice1_multi.info b/tests/data/subconfig_choice1_multi.info similarity index 100% rename from test/data/subconfig_choice1_multi.info rename to tests/data/subconfig_choice1_multi.info diff --git a/tests/data/subconfig_choice1_multi.json b/tests/data/subconfig_choice1_multi.json new file mode 100644 index 0000000..3f32542 --- /dev/null +++ b/tests/data/subconfig_choice1_multi.json @@ -0,0 +1 @@ +{"schema": {"choice1_multi.options": {"properties": {"choice1_multi.options.choice": {"type": "choice", "isMulti": true, "enum": ["choice 1", "choice 2"], "title": "Choice description"}}, "type": "object", "title": "Common configuration"}}, "model": {"choice1_multi.options.choice": {"required": true}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"choice1_multi.options.choice": {"clearable": true, "type": "choice"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_choice1_multi.owner b/tests/data/subconfig_choice1_multi.owner similarity index 100% rename from test/data/subconfig_choice1_multi.owner rename to tests/data/subconfig_choice1_multi.owner diff --git a/test/data/subconfig_choice1_multi.prop b/tests/data/subconfig_choice1_multi.prop similarity index 100% rename from test/data/subconfig_choice1_multi.prop rename to tests/data/subconfig_choice1_multi.prop diff --git a/test/data/subconfig_choice1_multi.prop2 b/tests/data/subconfig_choice1_multi.prop2 similarity index 100% rename from test/data/subconfig_choice1_multi.prop2 rename to tests/data/subconfig_choice1_multi.prop2 diff --git a/test/data/subconfig_choice1_rename.dict b/tests/data/subconfig_choice1_rename.dict similarity index 100% rename from test/data/subconfig_choice1_rename.dict rename to tests/data/subconfig_choice1_rename.dict diff --git a/test/data/subconfig_choice1_rename.info b/tests/data/subconfig_choice1_rename.info similarity index 100% rename from test/data/subconfig_choice1_rename.info rename to tests/data/subconfig_choice1_rename.info diff --git a/tests/data/subconfig_choice1_rename.json b/tests/data/subconfig_choice1_rename.json new file mode 100644 index 0000000..a78a449 --- /dev/null +++ b/tests/data/subconfig_choice1_rename.json @@ -0,0 +1 @@ +{"schema": {"choice1_rename.options": {"properties": {"choice1_rename.options.choice": {"type": "choice", "enum": ["", "choice 1", "choice 2"], "title": "Choice description"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"choice1_rename.options.choice": {"clearable": true, "type": "choice"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_choice1_rename.owner b/tests/data/subconfig_choice1_rename.owner similarity index 100% rename from test/data/subconfig_choice1_rename.owner rename to tests/data/subconfig_choice1_rename.owner diff --git a/test/data/subconfig_choice1_rename.prop b/tests/data/subconfig_choice1_rename.prop similarity index 100% rename from test/data/subconfig_choice1_rename.prop rename to tests/data/subconfig_choice1_rename.prop diff --git a/test/data/subconfig_choice1_rename.prop2 b/tests/data/subconfig_choice1_rename.prop2 similarity index 100% rename from test/data/subconfig_choice1_rename.prop2 rename to tests/data/subconfig_choice1_rename.prop2 diff --git a/test/data/subconfig_choice1_requires.dict b/tests/data/subconfig_choice1_requires.dict similarity index 100% rename from test/data/subconfig_choice1_requires.dict rename to tests/data/subconfig_choice1_requires.dict diff --git a/test/data/subconfig_choice1_requires.info b/tests/data/subconfig_choice1_requires.info similarity index 100% rename from test/data/subconfig_choice1_requires.info rename to tests/data/subconfig_choice1_requires.info diff --git a/tests/data/subconfig_choice1_requires.json b/tests/data/subconfig_choice1_requires.json new file mode 100644 index 0000000..ebfde26 --- /dev/null +++ b/tests/data/subconfig_choice1_requires.json @@ -0,0 +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 diff --git a/test/data/subconfig_choice1_requires.owner b/tests/data/subconfig_choice1_requires.owner similarity index 100% rename from test/data/subconfig_choice1_requires.owner rename to tests/data/subconfig_choice1_requires.owner diff --git a/test/data/subconfig_choice1_requires.prop b/tests/data/subconfig_choice1_requires.prop similarity index 100% rename from test/data/subconfig_choice1_requires.prop rename to tests/data/subconfig_choice1_requires.prop diff --git a/test/data/subconfig_choice1_requires.prop2 b/tests/data/subconfig_choice1_requires.prop2 similarity index 100% rename from test/data/subconfig_choice1_requires.prop2 rename to tests/data/subconfig_choice1_requires.prop2 diff --git a/test/data/subconfig_date1.dict b/tests/data/subconfig_date1.dict similarity index 100% rename from test/data/subconfig_date1.dict rename to tests/data/subconfig_date1.dict diff --git a/test/data/subconfig_date1.info b/tests/data/subconfig_date1.info similarity index 100% rename from test/data/subconfig_date1.info rename to tests/data/subconfig_date1.info diff --git a/tests/data/subconfig_date1.json b/tests/data/subconfig_date1.json new file mode 100644 index 0000000..f29285a --- /dev/null +++ b/tests/data/subconfig_date1.json @@ -0,0 +1 @@ +{"schema": {"date1.options": {"properties": {"date1.options.date": {"type": "date", "title": "Date description"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"date1.options.date": {"clearable": true, "remote": true}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_date1.owner b/tests/data/subconfig_date1.owner similarity index 100% rename from test/data/subconfig_date1.owner rename to tests/data/subconfig_date1.owner diff --git a/test/data/subconfig_date1.prop b/tests/data/subconfig_date1.prop similarity index 100% rename from test/data/subconfig_date1.prop rename to tests/data/subconfig_date1.prop diff --git a/test/data/subconfig_date1.prop2 b/tests/data/subconfig_date1.prop2 similarity index 100% rename from test/data/subconfig_date1.prop2 rename to tests/data/subconfig_date1.prop2 diff --git a/test/data/subconfig_date1_frozen.dict b/tests/data/subconfig_date1_frozen.dict similarity index 100% rename from test/data/subconfig_date1_frozen.dict rename to tests/data/subconfig_date1_frozen.dict diff --git a/test/data/subconfig_date1_frozen.info b/tests/data/subconfig_date1_frozen.info similarity index 100% rename from test/data/subconfig_date1_frozen.info rename to tests/data/subconfig_date1_frozen.info diff --git a/tests/data/subconfig_date1_frozen.json b/tests/data/subconfig_date1_frozen.json new file mode 100644 index 0000000..94b6c19 --- /dev/null +++ b/tests/data/subconfig_date1_frozen.json @@ -0,0 +1 @@ +{"schema": {"date1_frozen.options": {"properties": {"date1_frozen.options.date": {"type": "date", "title": "Date description frozen"}}, "type": "object", "title": "Common configuration"}}, "model": {"date1_frozen.options.date": {"readOnly": true}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"date1_frozen.options.date": {"clearable": true, "remote": true}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_date1_frozen.owner b/tests/data/subconfig_date1_frozen.owner similarity index 100% rename from test/data/subconfig_date1_frozen.owner rename to tests/data/subconfig_date1_frozen.owner diff --git a/test/data/subconfig_date1_frozen.prop b/tests/data/subconfig_date1_frozen.prop similarity index 100% rename from test/data/subconfig_date1_frozen.prop rename to tests/data/subconfig_date1_frozen.prop diff --git a/test/data/subconfig_date1_frozen.prop2 b/tests/data/subconfig_date1_frozen.prop2 similarity index 100% rename from test/data/subconfig_date1_frozen.prop2 rename to tests/data/subconfig_date1_frozen.prop2 diff --git a/test/data/subconfig_filename1.dict b/tests/data/subconfig_filename1.dict similarity index 100% rename from test/data/subconfig_filename1.dict rename to tests/data/subconfig_filename1.dict diff --git a/test/data/subconfig_filename1.info b/tests/data/subconfig_filename1.info similarity index 100% rename from test/data/subconfig_filename1.info rename to tests/data/subconfig_filename1.info diff --git a/tests/data/subconfig_filename1.json b/tests/data/subconfig_filename1.json new file mode 100644 index 0000000..ef5007c --- /dev/null +++ b/tests/data/subconfig_filename1.json @@ -0,0 +1 @@ +{"schema": {"filename1.usbpath": {"type": "filename", "title": "Chemin d'acc\u00e8s"}}, "model": {"filename1.usbpath": {"required": true}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"filename1.usbpath": {"clearable": true, "pattern": "^[a-zA-Z0-9\\-\\._~/+]+$", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_filename1.owner b/tests/data/subconfig_filename1.owner similarity index 100% rename from test/data/subconfig_filename1.owner rename to tests/data/subconfig_filename1.owner diff --git a/test/data/subconfig_filename1.prop b/tests/data/subconfig_filename1.prop similarity index 100% rename from test/data/subconfig_filename1.prop rename to tests/data/subconfig_filename1.prop diff --git a/test/data/subconfig_filename1.prop2 b/tests/data/subconfig_filename1.prop2 similarity index 100% rename from test/data/subconfig_filename1.prop2 rename to tests/data/subconfig_filename1.prop2 diff --git a/test/data/subconfig_hostname1.dict b/tests/data/subconfig_hostname1.dict similarity index 100% rename from test/data/subconfig_hostname1.dict rename to tests/data/subconfig_hostname1.dict diff --git a/test/data/subconfig_hostname1.info b/tests/data/subconfig_hostname1.info similarity index 100% rename from test/data/subconfig_hostname1.info rename to tests/data/subconfig_hostname1.info diff --git a/tests/data/subconfig_hostname1.json b/tests/data/subconfig_hostname1.json new file mode 100644 index 0000000..986d5e1 --- /dev/null +++ b/tests/data/subconfig_hostname1.json @@ -0,0 +1 @@ +{"schema": {"hostname1.options": {"properties": {"hostname1.options.hostname1": {"type": "domainname", "title": "Domainname Description"}, "hostname1.options.hostname2": {"type": "domainname", "title": "Domainname without dot Description"}, "hostname1.options.hostname3": {"type": "domainname", "title": "Hostname or IP Description"}, "hostname1.options.hostname4": {"type": "domainname", "title": "Netbios Description"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"hostname1.options.hostname1": {"clearable": true, "pattern": "^((?!-)[a-z0-9-]{1,63}\\.){1,}[a-z0-9-]{1,63}$", "type": "input"}, "hostname1.options.hostname2": {"clearable": true, "pattern": "^((?!-)[a-z0-9-]{0,63}\\.){0,}[a-z0-9-]{1,63}$", "type": "input"}, "hostname1.options.hostname3": {"clearable": true, "pattern": "^(?:((?!-)[a-z0-9-]{1,63})|(?:(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)))$", "type": "input"}, "hostname1.options.hostname4": {"clearable": true, "pattern": "^((?!-)[a-z0-9-]{1,15})$", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_hostname1.owner b/tests/data/subconfig_hostname1.owner similarity index 100% rename from test/data/subconfig_hostname1.owner rename to tests/data/subconfig_hostname1.owner diff --git a/test/data/subconfig_hostname1.prop b/tests/data/subconfig_hostname1.prop similarity index 100% rename from test/data/subconfig_hostname1.prop rename to tests/data/subconfig_hostname1.prop diff --git a/test/data/subconfig_hostname1.prop2 b/tests/data/subconfig_hostname1.prop2 similarity index 100% rename from test/data/subconfig_hostname1.prop2 rename to tests/data/subconfig_hostname1.prop2 diff --git a/test/data/subconfig_ip1.dict b/tests/data/subconfig_ip1.dict similarity index 100% rename from test/data/subconfig_ip1.dict rename to tests/data/subconfig_ip1.dict diff --git a/test/data/subconfig_ip1.info b/tests/data/subconfig_ip1.info similarity index 100% rename from test/data/subconfig_ip1.info rename to tests/data/subconfig_ip1.info diff --git a/tests/data/subconfig_ip1.json b/tests/data/subconfig_ip1.json new file mode 100644 index 0000000..f5c7749 --- /dev/null +++ b/tests/data/subconfig_ip1.json @@ -0,0 +1 @@ +{"schema": {"ip1.options": {"properties": {"ip1.options.ip": {"type": "ip", "title": "IP Description"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"ip1.options.ip": {"clearable": true, "remote": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_ip1.owner b/tests/data/subconfig_ip1.owner similarity index 100% rename from test/data/subconfig_ip1.owner rename to tests/data/subconfig_ip1.owner diff --git a/test/data/subconfig_ip1.prop b/tests/data/subconfig_ip1.prop similarity index 100% rename from test/data/subconfig_ip1.prop rename to tests/data/subconfig_ip1.prop diff --git a/test/data/subconfig_ip1.prop2 b/tests/data/subconfig_ip1.prop2 similarity index 100% rename from test/data/subconfig_ip1.prop2 rename to tests/data/subconfig_ip1.prop2 diff --git a/test/data/subconfig_ip1_frozen.dict b/tests/data/subconfig_ip1_frozen.dict similarity index 100% rename from test/data/subconfig_ip1_frozen.dict rename to tests/data/subconfig_ip1_frozen.dict diff --git a/test/data/subconfig_ip1_frozen.info b/tests/data/subconfig_ip1_frozen.info similarity index 100% rename from test/data/subconfig_ip1_frozen.info rename to tests/data/subconfig_ip1_frozen.info diff --git a/tests/data/subconfig_ip1_frozen.json b/tests/data/subconfig_ip1_frozen.json new file mode 100644 index 0000000..78f6c18 --- /dev/null +++ b/tests/data/subconfig_ip1_frozen.json @@ -0,0 +1 @@ +{"schema": {"ip1_frozen.options": {"properties": {"ip1_frozen.options.ip": {"type": "ip", "title": "IP Description frozen"}}, "type": "object", "title": "Common configuration"}}, "model": {"ip1_frozen.options.ip": {"readOnly": true}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"ip1_frozen.options.ip": {"clearable": true, "remote": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_ip1_frozen.owner b/tests/data/subconfig_ip1_frozen.owner similarity index 100% rename from test/data/subconfig_ip1_frozen.owner rename to tests/data/subconfig_ip1_frozen.owner diff --git a/test/data/subconfig_ip1_frozen.prop b/tests/data/subconfig_ip1_frozen.prop similarity index 100% rename from test/data/subconfig_ip1_frozen.prop rename to tests/data/subconfig_ip1_frozen.prop diff --git a/test/data/subconfig_ip1_frozen.prop2 b/tests/data/subconfig_ip1_frozen.prop2 similarity index 100% rename from test/data/subconfig_ip1_frozen.prop2 rename to tests/data/subconfig_ip1_frozen.prop2 diff --git a/test/data/subconfig_mail1.dict b/tests/data/subconfig_mail1.dict similarity index 100% rename from test/data/subconfig_mail1.dict rename to tests/data/subconfig_mail1.dict diff --git a/test/data/subconfig_mail1.info b/tests/data/subconfig_mail1.info similarity index 100% rename from test/data/subconfig_mail1.info rename to tests/data/subconfig_mail1.info diff --git a/tests/data/subconfig_mail1.json b/tests/data/subconfig_mail1.json new file mode 100644 index 0000000..f83aa20 --- /dev/null +++ b/tests/data/subconfig_mail1.json @@ -0,0 +1 @@ +{"schema": {"mail1.options": {"properties": {"mail1.options.mail": {"type": "email", "title": "Mail Description"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"mail1.options.mail": {"clearable": true, "pattern": "^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\\.[a-zA-Z0-9-]+)*$", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_mail1.owner b/tests/data/subconfig_mail1.owner similarity index 100% rename from test/data/subconfig_mail1.owner rename to tests/data/subconfig_mail1.owner diff --git a/test/data/subconfig_mail1.prop b/tests/data/subconfig_mail1.prop similarity index 100% rename from test/data/subconfig_mail1.prop rename to tests/data/subconfig_mail1.prop diff --git a/test/data/subconfig_mail1.prop2 b/tests/data/subconfig_mail1.prop2 similarity index 100% rename from test/data/subconfig_mail1.prop2 rename to tests/data/subconfig_mail1.prop2 diff --git a/test/data/subconfig_number1.dict b/tests/data/subconfig_number1.dict similarity index 100% rename from test/data/subconfig_number1.dict rename to tests/data/subconfig_number1.dict diff --git a/test/data/subconfig_number1.info b/tests/data/subconfig_number1.info similarity index 100% rename from test/data/subconfig_number1.info rename to tests/data/subconfig_number1.info diff --git a/tests/data/subconfig_number1.json b/tests/data/subconfig_number1.json new file mode 100644 index 0000000..1a297c7 --- /dev/null +++ b/tests/data/subconfig_number1.json @@ -0,0 +1 @@ +{"schema": {"number1.options": {"properties": {"number1.options.integer": {"type": "integer", "title": "integer 1"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"number1.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/test/data/subconfig_number1.owner b/tests/data/subconfig_number1.owner similarity index 100% rename from test/data/subconfig_number1.owner rename to tests/data/subconfig_number1.owner diff --git a/test/data/subconfig_number1.prop b/tests/data/subconfig_number1.prop similarity index 100% rename from test/data/subconfig_number1.prop rename to tests/data/subconfig_number1.prop diff --git a/test/data/subconfig_number1.prop2 b/tests/data/subconfig_number1.prop2 similarity index 100% rename from test/data/subconfig_number1.prop2 rename to tests/data/subconfig_number1.prop2 diff --git a/test/data/subconfig_number1_frozen.dict b/tests/data/subconfig_number1_frozen.dict similarity index 100% rename from test/data/subconfig_number1_frozen.dict rename to tests/data/subconfig_number1_frozen.dict diff --git a/test/data/subconfig_number1_frozen.info b/tests/data/subconfig_number1_frozen.info similarity index 100% rename from test/data/subconfig_number1_frozen.info rename to tests/data/subconfig_number1_frozen.info diff --git a/tests/data/subconfig_number1_frozen.json b/tests/data/subconfig_number1_frozen.json new file mode 100644 index 0000000..6d638da --- /dev/null +++ b/tests/data/subconfig_number1_frozen.json @@ -0,0 +1 @@ +{"schema": {"number1_frozen.options": {"properties": {"number1_frozen.options.integer": {"type": "integer", "title": "integer 1 frozen"}}, "type": "object", "title": "Common configuration"}}, "model": {"number1_frozen.options.integer": {"readOnly": true}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"number1_frozen.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/test/data/subconfig_number1_frozen.owner b/tests/data/subconfig_number1_frozen.owner similarity index 100% rename from test/data/subconfig_number1_frozen.owner rename to tests/data/subconfig_number1_frozen.owner diff --git a/test/data/subconfig_number1_frozen.prop b/tests/data/subconfig_number1_frozen.prop similarity index 100% rename from test/data/subconfig_number1_frozen.prop rename to tests/data/subconfig_number1_frozen.prop diff --git a/test/data/subconfig_number1_frozen.prop2 b/tests/data/subconfig_number1_frozen.prop2 similarity index 100% rename from test/data/subconfig_number1_frozen.prop2 rename to tests/data/subconfig_number1_frozen.prop2 diff --git a/test/data/subconfig_number1_mod_value.dict b/tests/data/subconfig_number1_mod_value.dict similarity index 100% rename from test/data/subconfig_number1_mod_value.dict rename to tests/data/subconfig_number1_mod_value.dict diff --git a/test/data/subconfig_number1_mod_value.info b/tests/data/subconfig_number1_mod_value.info similarity index 100% rename from test/data/subconfig_number1_mod_value.info rename to tests/data/subconfig_number1_mod_value.info diff --git a/tests/data/subconfig_number1_mod_value.json b/tests/data/subconfig_number1_mod_value.json new file mode 100644 index 0000000..6cf5639 --- /dev/null +++ b/tests/data/subconfig_number1_mod_value.json @@ -0,0 +1 @@ +{"schema": {"number1_mod_value.options": {"properties": {"number1_mod_value.options.integer": {"type": "integer", "value": 0, "title": "integer 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"number1_mod_value.options.integer": {"value": 3, "owner": "user"}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"number1_mod_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/test/data/subconfig_number1_mod_value.owner b/tests/data/subconfig_number1_mod_value.owner similarity index 100% rename from test/data/subconfig_number1_mod_value.owner rename to tests/data/subconfig_number1_mod_value.owner diff --git a/test/data/subconfig_number1_mod_value.prop b/tests/data/subconfig_number1_mod_value.prop similarity index 100% rename from test/data/subconfig_number1_mod_value.prop rename to tests/data/subconfig_number1_mod_value.prop diff --git a/test/data/subconfig_number1_mod_value.prop2 b/tests/data/subconfig_number1_mod_value.prop2 similarity index 100% rename from test/data/subconfig_number1_mod_value.prop2 rename to tests/data/subconfig_number1_mod_value.prop2 diff --git a/test/data/subconfig_number1_value.dict b/tests/data/subconfig_number1_value.dict similarity index 100% rename from test/data/subconfig_number1_value.dict rename to tests/data/subconfig_number1_value.dict diff --git a/test/data/subconfig_number1_value.info b/tests/data/subconfig_number1_value.info similarity index 100% rename from test/data/subconfig_number1_value.info rename to tests/data/subconfig_number1_value.info diff --git a/tests/data/subconfig_number1_value.json b/tests/data/subconfig_number1_value.json new file mode 100644 index 0000000..8a6666b --- /dev/null +++ b/tests/data/subconfig_number1_value.json @@ -0,0 +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 diff --git a/test/data/subconfig_number1_value.owner b/tests/data/subconfig_number1_value.owner similarity index 100% rename from test/data/subconfig_number1_value.owner rename to tests/data/subconfig_number1_value.owner diff --git a/test/data/subconfig_number1_value.prop b/tests/data/subconfig_number1_value.prop similarity index 100% rename from test/data/subconfig_number1_value.prop rename to tests/data/subconfig_number1_value.prop diff --git a/test/data/subconfig_number1_value.prop2 b/tests/data/subconfig_number1_value.prop2 similarity index 100% rename from test/data/subconfig_number1_value.prop2 rename to tests/data/subconfig_number1_value.prop2 diff --git a/test/data/subconfig_unicode1.dict b/tests/data/subconfig_unicode1.dict similarity index 100% rename from test/data/subconfig_unicode1.dict rename to tests/data/subconfig_unicode1.dict diff --git a/test/data/subconfig_unicode1.info b/tests/data/subconfig_unicode1.info similarity index 100% rename from test/data/subconfig_unicode1.info rename to tests/data/subconfig_unicode1.info diff --git a/tests/data/subconfig_unicode1.json b/tests/data/subconfig_unicode1.json new file mode 100644 index 0000000..0c21849 --- /dev/null +++ b/tests/data/subconfig_unicode1.json @@ -0,0 +1 @@ +{"schema": {"unicode1.options": {"properties": {"unicode1.options.unicode": {"type": "string", "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"unicode1.options.unicode": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1.owner b/tests/data/subconfig_unicode1.owner similarity index 100% rename from test/data/subconfig_unicode1.owner rename to tests/data/subconfig_unicode1.owner diff --git a/test/data/subconfig_unicode1.prop b/tests/data/subconfig_unicode1.prop similarity index 100% rename from test/data/subconfig_unicode1.prop rename to tests/data/subconfig_unicode1.prop diff --git a/test/data/subconfig_unicode1.prop2 b/tests/data/subconfig_unicode1.prop2 similarity index 100% rename from test/data/subconfig_unicode1.prop2 rename to tests/data/subconfig_unicode1.prop2 diff --git a/test/data/subconfig_unicode1_frozen.dict b/tests/data/subconfig_unicode1_frozen.dict similarity index 100% rename from test/data/subconfig_unicode1_frozen.dict rename to tests/data/subconfig_unicode1_frozen.dict diff --git a/test/data/subconfig_unicode1_frozen.info b/tests/data/subconfig_unicode1_frozen.info similarity index 100% rename from test/data/subconfig_unicode1_frozen.info rename to tests/data/subconfig_unicode1_frozen.info diff --git a/tests/data/subconfig_unicode1_frozen.json b/tests/data/subconfig_unicode1_frozen.json new file mode 100644 index 0000000..496cf61 --- /dev/null +++ b/tests/data/subconfig_unicode1_frozen.json @@ -0,0 +1 @@ +{"schema": {"unicode1_frozen.options": {"properties": {"unicode1_frozen.options.unicode": {"type": "string", "title": "Unicode 1 frozen"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_frozen.options.unicode": {"readOnly": true}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"unicode1_frozen.options.unicode": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_frozen.owner b/tests/data/subconfig_unicode1_frozen.owner similarity index 100% rename from test/data/subconfig_unicode1_frozen.owner rename to tests/data/subconfig_unicode1_frozen.owner diff --git a/test/data/subconfig_unicode1_frozen.prop b/tests/data/subconfig_unicode1_frozen.prop similarity index 100% rename from test/data/subconfig_unicode1_frozen.prop rename to tests/data/subconfig_unicode1_frozen.prop diff --git a/test/data/subconfig_unicode1_frozen.prop2 b/tests/data/subconfig_unicode1_frozen.prop2 similarity index 100% rename from test/data/subconfig_unicode1_frozen.prop2 rename to tests/data/subconfig_unicode1_frozen.prop2 diff --git a/test/data/subconfig_unicode1_leader_hidden_followers.dict b/tests/data/subconfig_unicode1_leader_hidden_followers.dict similarity index 100% rename from test/data/subconfig_unicode1_leader_hidden_followers.dict rename to tests/data/subconfig_unicode1_leader_hidden_followers.dict diff --git a/test/data/subconfig_unicode1_leader_hidden_followers.info b/tests/data/subconfig_unicode1_leader_hidden_followers.info similarity index 100% rename from test/data/subconfig_unicode1_leader_hidden_followers.info rename to tests/data/subconfig_unicode1_leader_hidden_followers.info diff --git a/tests/data/subconfig_unicode1_leader_hidden_followers.json b/tests/data/subconfig_unicode1_leader_hidden_followers.json new file mode 100644 index 0000000..a9d9594 --- /dev/null +++ b/tests/data/subconfig_unicode1_leader_hidden_followers.json @@ -0,0 +1 @@ +{"schema": {"unicode1_leader_hidden_followers.options": {"properties": {"unicode1_leader_hidden_followers.options.unicode": {"properties": {"unicode1_leader_hidden_followers.options.unicode.unicode": {"type": "string", "isMulti": true, "title": "Unicode leader"}, "unicode1_leader_hidden_followers.options.unicode.unicode1": {"type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leader_hidden_followers.options.unicode.unicode2": {"type": "string", "isMulti": true, "title": "Unicode follower 2"}, "unicode1_leader_hidden_followers.options.unicode.unicode3": {"type": "string", "isMulti": true, "title": "Unicode follower 3"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_leader_hidden_followers.options.unicode.unicode": {"required": true, "display": false, "hidden": true}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"unicode1_leader_hidden_followers.options.unicode.unicode": {"clearable": true, "type": "input"}, "unicode1_leader_hidden_followers.options.unicode.unicode1": {"clearable": true, "type": "input"}, "unicode1_leader_hidden_followers.options.unicode.unicode2": {"clearable": true, "type": "input"}, "unicode1_leader_hidden_followers.options.unicode.unicode3": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_leader_hidden_followers.owner b/tests/data/subconfig_unicode1_leader_hidden_followers.owner similarity index 100% rename from test/data/subconfig_unicode1_leader_hidden_followers.owner rename to tests/data/subconfig_unicode1_leader_hidden_followers.owner diff --git a/test/data/subconfig_unicode1_leader_hidden_followers.prop b/tests/data/subconfig_unicode1_leader_hidden_followers.prop similarity index 100% rename from test/data/subconfig_unicode1_leader_hidden_followers.prop rename to tests/data/subconfig_unicode1_leader_hidden_followers.prop diff --git a/test/data/subconfig_unicode1_leader_hidden_followers.prop2 b/tests/data/subconfig_unicode1_leader_hidden_followers.prop2 similarity index 100% rename from test/data/subconfig_unicode1_leader_hidden_followers.prop2 rename to tests/data/subconfig_unicode1_leader_hidden_followers.prop2 diff --git a/test/data/subconfig_unicode1_leadership.dict b/tests/data/subconfig_unicode1_leadership.dict similarity index 100% rename from test/data/subconfig_unicode1_leadership.dict rename to tests/data/subconfig_unicode1_leadership.dict diff --git a/test/data/subconfig_unicode1_leadership.info b/tests/data/subconfig_unicode1_leadership.info similarity index 100% rename from test/data/subconfig_unicode1_leadership.info rename to tests/data/subconfig_unicode1_leadership.info diff --git a/tests/data/subconfig_unicode1_leadership.json b/tests/data/subconfig_unicode1_leadership.json new file mode 100644 index 0000000..0d05930 --- /dev/null +++ b/tests/data/subconfig_unicode1_leadership.json @@ -0,0 +1 @@ +{"schema": {"unicode1_leadership.options": {"properties": {"unicode1_leadership.options.unicode": {"properties": {"unicode1_leadership.options.unicode.unicode": {"type": "string", "isMulti": true, "title": "Unicode leader"}, "unicode1_leadership.options.unicode.unicode1": {"type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership.options.unicode.unicode2": {"type": "string", "isMulti": true, "title": "Unicode follower 2"}, "unicode1_leadership.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.options.unicode.unicode": {"required": true}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"unicode1_leadership.options.unicode.unicode": {"clearable": true, "type": "input"}, "unicode1_leadership.options.unicode.unicode1": {"clearable": true, "type": "input"}, "unicode1_leadership.options.unicode.unicode2": {"clearable": true, "type": "input"}, "unicode1_leadership.options.unicode.unicode3": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_leadership.owner b/tests/data/subconfig_unicode1_leadership.owner similarity index 100% rename from test/data/subconfig_unicode1_leadership.owner rename to tests/data/subconfig_unicode1_leadership.owner diff --git a/test/data/subconfig_unicode1_leadership.prop b/tests/data/subconfig_unicode1_leadership.prop similarity index 100% rename from test/data/subconfig_unicode1_leadership.prop rename to tests/data/subconfig_unicode1_leadership.prop diff --git a/test/data/subconfig_unicode1_leadership.prop2 b/tests/data/subconfig_unicode1_leadership.prop2 similarity index 100% rename from test/data/subconfig_unicode1_leadership.prop2 rename to tests/data/subconfig_unicode1_leadership.prop2 diff --git a/test/data/subconfig_unicode1_leadership_default_value.dict b/tests/data/subconfig_unicode1_leadership_default_value.dict similarity index 100% rename from test/data/subconfig_unicode1_leadership_default_value.dict rename to tests/data/subconfig_unicode1_leadership_default_value.dict diff --git a/test/data/subconfig_unicode1_leadership_default_value.info b/tests/data/subconfig_unicode1_leadership_default_value.info similarity index 100% rename from test/data/subconfig_unicode1_leadership_default_value.info rename to tests/data/subconfig_unicode1_leadership_default_value.info diff --git a/tests/data/subconfig_unicode1_leadership_default_value.json b/tests/data/subconfig_unicode1_leadership_default_value.json new file mode 100644 index 0000000..65534e1 --- /dev/null +++ b/tests/data/subconfig_unicode1_leadership_default_value.json @@ -0,0 +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 diff --git a/test/data/subconfig_unicode1_leadership_default_value.owner b/tests/data/subconfig_unicode1_leadership_default_value.owner similarity index 100% rename from test/data/subconfig_unicode1_leadership_default_value.owner rename to tests/data/subconfig_unicode1_leadership_default_value.owner diff --git a/test/data/subconfig_unicode1_leadership_default_value.prop b/tests/data/subconfig_unicode1_leadership_default_value.prop similarity index 100% rename from test/data/subconfig_unicode1_leadership_default_value.prop rename to tests/data/subconfig_unicode1_leadership_default_value.prop diff --git a/test/data/subconfig_unicode1_leadership_default_value.prop2 b/tests/data/subconfig_unicode1_leadership_default_value.prop2 similarity index 100% rename from test/data/subconfig_unicode1_leadership_default_value.prop2 rename to tests/data/subconfig_unicode1_leadership_default_value.prop2 diff --git a/test/data/subconfig_unicode1_leadership_hidden.dict b/tests/data/subconfig_unicode1_leadership_hidden.dict similarity index 100% rename from test/data/subconfig_unicode1_leadership_hidden.dict rename to tests/data/subconfig_unicode1_leadership_hidden.dict diff --git a/test/data/subconfig_unicode1_leadership_hidden.info b/tests/data/subconfig_unicode1_leadership_hidden.info similarity index 100% rename from test/data/subconfig_unicode1_leadership_hidden.info rename to tests/data/subconfig_unicode1_leadership_hidden.info diff --git a/tests/data/subconfig_unicode1_leadership_hidden.json b/tests/data/subconfig_unicode1_leadership_hidden.json new file mode 100644 index 0000000..48de43f --- /dev/null +++ b/tests/data/subconfig_unicode1_leadership_hidden.json @@ -0,0 +1 @@ +{"schema": {"unicode1_leadership_hidden.options": {"properties": {"unicode1_leadership_hidden.options.unicode": {"properties": {"unicode1_leadership_hidden.options.unicode.unicode": {"type": "string", "isMulti": true, "title": "Unicode leader"}, "unicode1_leadership_hidden.options.unicode.unicode1": {"type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership_hidden.options.unicode.unicode2": {"type": "string", "isMulti": true, "title": "Unicode follower 2 hidden"}, "unicode1_leadership_hidden.options.unicode.unicode3": {"type": "string", "isMulti": true, "title": "Unicode follower 3"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_leadership_hidden.options.unicode.unicode": {"required": true, "value": ["val1", "val2"], "owner": "user"}, "unicode1_leadership_hidden.options.unicode.unicode2": {"0": {"display": false, "hidden": true, "value": "super", "owner": "user"}, "1": {"display": false, "hidden": true}, "null": {"display": false}}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"unicode1_leadership_hidden.options.unicode.unicode": {"clearable": true, "type": "input"}, "unicode1_leadership_hidden.options.unicode.unicode1": {"clearable": true, "type": "input"}, "unicode1_leadership_hidden.options.unicode.unicode2": {"clearable": true, "type": "input"}, "unicode1_leadership_hidden.options.unicode.unicode3": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_leadership_hidden.owner b/tests/data/subconfig_unicode1_leadership_hidden.owner similarity index 100% rename from test/data/subconfig_unicode1_leadership_hidden.owner rename to tests/data/subconfig_unicode1_leadership_hidden.owner diff --git a/test/data/subconfig_unicode1_leadership_hidden.prop b/tests/data/subconfig_unicode1_leadership_hidden.prop similarity index 100% rename from test/data/subconfig_unicode1_leadership_hidden.prop rename to tests/data/subconfig_unicode1_leadership_hidden.prop diff --git a/test/data/subconfig_unicode1_leadership_hidden.prop2 b/tests/data/subconfig_unicode1_leadership_hidden.prop2 similarity index 100% rename from test/data/subconfig_unicode1_leadership_hidden.prop2 rename to tests/data/subconfig_unicode1_leadership_hidden.prop2 diff --git a/test/data/subconfig_unicode1_leadership_hidden_all_default.dict b/tests/data/subconfig_unicode1_leadership_hidden_all_default.dict similarity index 100% rename from test/data/subconfig_unicode1_leadership_hidden_all_default.dict rename to tests/data/subconfig_unicode1_leadership_hidden_all_default.dict diff --git a/test/data/subconfig_unicode1_leadership_hidden_all_default.info b/tests/data/subconfig_unicode1_leadership_hidden_all_default.info similarity index 100% rename from test/data/subconfig_unicode1_leadership_hidden_all_default.info rename to tests/data/subconfig_unicode1_leadership_hidden_all_default.info diff --git a/tests/data/subconfig_unicode1_leadership_hidden_all_default.json b/tests/data/subconfig_unicode1_leadership_hidden_all_default.json new file mode 100644 index 0000000..07352af --- /dev/null +++ b/tests/data/subconfig_unicode1_leadership_hidden_all_default.json @@ -0,0 +1 @@ +{"schema": {"unicode1_leadership_hidden_all_default.options": {"properties": {"unicode1_leadership_hidden_all_default.options.unicode": {"type": "string", "title": "Unicode leader"}, "unicode1_leadership_hidden_all_default.options.unicode1": {"properties": {"unicode1_leadership_hidden_all_default.options.unicode1.unicode1": {"type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership_hidden_all_default.options.unicode1.unicode2": {"type": "string", "isMulti": true, "title": "Unicode follower 2"}, "unicode1_leadership_hidden_all_default.options.unicode1.unicode3": {"type": "string", "isMulti": true, "title": "Unicode follower 3"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_leadership_hidden_all_default.options.unicode1.unicode1": {"required": true}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"unicode1_leadership_hidden_all_default.options.unicode": {"clearable": true, "type": "input"}, "unicode1_leadership_hidden_all_default.options.unicode1.unicode1": {"clearable": true, "type": "input"}, "unicode1_leadership_hidden_all_default.options.unicode1.unicode2": {"clearable": true, "type": "input"}, "unicode1_leadership_hidden_all_default.options.unicode1.unicode3": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_leadership_hidden_all_default.owner b/tests/data/subconfig_unicode1_leadership_hidden_all_default.owner similarity index 100% rename from test/data/subconfig_unicode1_leadership_hidden_all_default.owner rename to tests/data/subconfig_unicode1_leadership_hidden_all_default.owner diff --git a/test/data/subconfig_unicode1_leadership_hidden_all_default.prop b/tests/data/subconfig_unicode1_leadership_hidden_all_default.prop similarity index 100% rename from test/data/subconfig_unicode1_leadership_hidden_all_default.prop rename to tests/data/subconfig_unicode1_leadership_hidden_all_default.prop diff --git a/test/data/subconfig_unicode1_leadership_hidden_all_default.prop2 b/tests/data/subconfig_unicode1_leadership_hidden_all_default.prop2 similarity index 100% rename from test/data/subconfig_unicode1_leadership_hidden_all_default.prop2 rename to tests/data/subconfig_unicode1_leadership_hidden_all_default.prop2 diff --git a/test/data/subconfig_unicode1_leadership_not_equal.dict b/tests/data/subconfig_unicode1_leadership_not_equal.dict similarity index 100% rename from test/data/subconfig_unicode1_leadership_not_equal.dict rename to tests/data/subconfig_unicode1_leadership_not_equal.dict diff --git a/test/data/subconfig_unicode1_leadership_not_equal.info b/tests/data/subconfig_unicode1_leadership_not_equal.info similarity index 100% rename from test/data/subconfig_unicode1_leadership_not_equal.info rename to tests/data/subconfig_unicode1_leadership_not_equal.info diff --git a/tests/data/subconfig_unicode1_leadership_not_equal.json b/tests/data/subconfig_unicode1_leadership_not_equal.json new file mode 100644 index 0000000..8a0cf21 --- /dev/null +++ b/tests/data/subconfig_unicode1_leadership_not_equal.json @@ -0,0 +1 @@ +{"schema": {"unicode1_leadership_not_equal.options": {"properties": {"unicode1_leadership_not_equal.options.unicode": {"properties": {"unicode1_leadership_not_equal.options.unicode.unicode": {"type": "string", "isMulti": true, "title": "Unicode leader"}, "unicode1_leadership_not_equal.options.unicode.unicode1": {"type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership_not_equal.options.unicode.unicode2": {"type": "string", "isMulti": true, "title": "Unicode follower 2 not equal"}, "unicode1_leadership_not_equal.options.unicode.unicode3": {"type": "string", "isMulti": true, "title": "Unicode follower 3 not equal"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": {"unicode1_leadership_not_equal.options.unicode.unicode": {"required": true}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"unicode1_leadership_not_equal.options.unicode.unicode": {"clearable": true, "type": "input"}, "unicode1_leadership_not_equal.options.unicode.unicode1": {"clearable": true, "type": "input"}, "unicode1_leadership_not_equal.options.unicode.unicode2": {"clearable": true, "type": "input", "not_equal": [{"options": ["unicode1_leadership_not_equal.options.unicode.unicode3"]}]}, "unicode1_leadership_not_equal.options.unicode.unicode3": {"clearable": true, "type": "input", "not_equal": [{"options": ["unicode1_leadership_not_equal.options.unicode.unicode2"]}]}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_leadership_not_equal.owner b/tests/data/subconfig_unicode1_leadership_not_equal.owner similarity index 100% rename from test/data/subconfig_unicode1_leadership_not_equal.owner rename to tests/data/subconfig_unicode1_leadership_not_equal.owner diff --git a/test/data/subconfig_unicode1_leadership_not_equal.prop b/tests/data/subconfig_unicode1_leadership_not_equal.prop similarity index 100% rename from test/data/subconfig_unicode1_leadership_not_equal.prop rename to tests/data/subconfig_unicode1_leadership_not_equal.prop diff --git a/test/data/subconfig_unicode1_leadership_not_equal.prop2 b/tests/data/subconfig_unicode1_leadership_not_equal.prop2 similarity index 100% rename from test/data/subconfig_unicode1_leadership_not_equal.prop2 rename to tests/data/subconfig_unicode1_leadership_not_equal.prop2 diff --git a/test/data/subconfig_unicode1_leadership_requires.dict b/tests/data/subconfig_unicode1_leadership_requires.dict similarity index 100% rename from test/data/subconfig_unicode1_leadership_requires.dict rename to tests/data/subconfig_unicode1_leadership_requires.dict diff --git a/test/data/subconfig_unicode1_leadership_requires.info b/tests/data/subconfig_unicode1_leadership_requires.info similarity index 100% rename from test/data/subconfig_unicode1_leadership_requires.info rename to tests/data/subconfig_unicode1_leadership_requires.info diff --git a/tests/data/subconfig_unicode1_leadership_requires.json b/tests/data/subconfig_unicode1_leadership_requires.json new file mode 100644 index 0000000..752f5cf --- /dev/null +++ b/tests/data/subconfig_unicode1_leadership_requires.json @@ -0,0 +1 @@ +{"schema": {"unicode1_leadership_requires.options": {"properties": {"unicode1_leadership_requires.options.unicode": {"properties": {"unicode1_leadership_requires.options.unicode.unicode": {"type": "string", "isMulti": true, "title": "Unicode leader"}, "unicode1_leadership_requires.options.unicode.unicode1": {"type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership_requires.options.unicode.unicode2": {"type": "string", "isMulti": true, "title": "Values 'test' must show 'Unicode follower 3'"}, "unicode1_leadership_requires.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_requires.options.unicode.unicode": {"required": true}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"unicode1_leadership_requires.options.unicode.unicode": {"clearable": true, "type": "input"}, "unicode1_leadership_requires.options.unicode.unicode1": {"clearable": true, "type": "input"}, "unicode1_leadership_requires.options.unicode.unicode2": {"clearable": true, "type": "input", "dependencies": {"default": {"hide": ["unicode1_leadership_requires.options.unicode.unicode3"]}, "expected": {"test": {"show": ["unicode1_leadership_requires.options.unicode.unicode3"]}}}}, "unicode1_leadership_requires.options.unicode.unicode3": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_leadership_requires.owner b/tests/data/subconfig_unicode1_leadership_requires.owner similarity index 100% rename from test/data/subconfig_unicode1_leadership_requires.owner rename to tests/data/subconfig_unicode1_leadership_requires.owner diff --git a/test/data/subconfig_unicode1_leadership_requires.prop b/tests/data/subconfig_unicode1_leadership_requires.prop similarity index 100% rename from test/data/subconfig_unicode1_leadership_requires.prop rename to tests/data/subconfig_unicode1_leadership_requires.prop diff --git a/test/data/subconfig_unicode1_leadership_requires.prop2 b/tests/data/subconfig_unicode1_leadership_requires.prop2 similarity index 100% rename from test/data/subconfig_unicode1_leadership_requires.prop2 rename to tests/data/subconfig_unicode1_leadership_requires.prop2 diff --git a/test/data/subconfig_unicode1_leadership_requires_all.dict b/tests/data/subconfig_unicode1_leadership_requires_all.dict similarity index 100% rename from test/data/subconfig_unicode1_leadership_requires_all.dict rename to tests/data/subconfig_unicode1_leadership_requires_all.dict diff --git a/test/data/subconfig_unicode1_leadership_requires_all.info b/tests/data/subconfig_unicode1_leadership_requires_all.info similarity index 100% rename from test/data/subconfig_unicode1_leadership_requires_all.info rename to tests/data/subconfig_unicode1_leadership_requires_all.info diff --git a/tests/data/subconfig_unicode1_leadership_requires_all.json b/tests/data/subconfig_unicode1_leadership_requires_all.json new file mode 100644 index 0000000..32bb734 --- /dev/null +++ b/tests/data/subconfig_unicode1_leadership_requires_all.json @@ -0,0 +1 @@ +{"schema": {"unicode1_leadership_requires_all.options": {"properties": {"unicode1_leadership_requires_all.options.unicode": {"type": "string", "title": "Value 'test' must show Leadership"}, "unicode1_leadership_requires_all.options.unicode1": {"properties": {"unicode1_leadership_requires_all.options.unicode1.unicode1": {"type": "string", "isMulti": true, "title": "Unicode leader"}, "unicode1_leadership_requires_all.options.unicode1.unicode2": {"type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership_requires_all.options.unicode1.unicode3": {"type": "string", "isMulti": true, "title": "Unicode follower 2"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_leadership_requires_all.options.unicode1": {"display": false, "properties": ["hidden"]}, "unicode1_leadership_requires_all.options.unicode1.unicode1": {"required": true, "hidden": true, "display": false}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"unicode1_leadership_requires_all.options.unicode": {"clearable": true, "type": "input", "dependencies": {"default": {"hide": ["unicode1_leadership_requires_all.options.unicode1"]}, "expected": {"test": {"show": ["unicode1_leadership_requires_all.options.unicode1"]}}}}, "unicode1_leadership_requires_all.options.unicode1.unicode1": {"clearable": true, "type": "input"}, "unicode1_leadership_requires_all.options.unicode1.unicode2": {"clearable": true, "type": "input"}, "unicode1_leadership_requires_all.options.unicode1.unicode3": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_leadership_requires_all.owner b/tests/data/subconfig_unicode1_leadership_requires_all.owner similarity index 100% rename from test/data/subconfig_unicode1_leadership_requires_all.owner rename to tests/data/subconfig_unicode1_leadership_requires_all.owner diff --git a/test/data/subconfig_unicode1_leadership_requires_all.prop b/tests/data/subconfig_unicode1_leadership_requires_all.prop similarity index 100% rename from test/data/subconfig_unicode1_leadership_requires_all.prop rename to tests/data/subconfig_unicode1_leadership_requires_all.prop diff --git a/test/data/subconfig_unicode1_leadership_requires_all.prop2 b/tests/data/subconfig_unicode1_leadership_requires_all.prop2 similarity index 100% rename from test/data/subconfig_unicode1_leadership_requires_all.prop2 rename to tests/data/subconfig_unicode1_leadership_requires_all.prop2 diff --git a/test/data/subconfig_unicode1_leadership_requires_follower.dict b/tests/data/subconfig_unicode1_leadership_requires_follower.dict similarity index 100% rename from test/data/subconfig_unicode1_leadership_requires_follower.dict rename to tests/data/subconfig_unicode1_leadership_requires_follower.dict diff --git a/test/data/subconfig_unicode1_leadership_requires_follower.info b/tests/data/subconfig_unicode1_leadership_requires_follower.info similarity index 100% rename from test/data/subconfig_unicode1_leadership_requires_follower.info rename to tests/data/subconfig_unicode1_leadership_requires_follower.info diff --git a/tests/data/subconfig_unicode1_leadership_requires_follower.json b/tests/data/subconfig_unicode1_leadership_requires_follower.json new file mode 100644 index 0000000..9a319ac --- /dev/null +++ b/tests/data/subconfig_unicode1_leadership_requires_follower.json @@ -0,0 +1 @@ +{"schema": {"unicode1_leadership_requires_follower.options": {"properties": {"unicode1_leadership_requires_follower.options.unicode1": {"properties": {"unicode1_leadership_requires_follower.options.unicode1.unicode1": {"type": "string", "isMulti": true, "title": "Values 'test' must show 'Unicode follower 2'"}, "unicode1_leadership_requires_follower.options.unicode1.unicode2": {"type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership_requires_follower.options.unicode1.unicode3": {"type": "string", "isMulti": true, "title": "Unicode follower 2"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_leadership_requires_follower.options.unicode1.unicode1": {"required": true}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"unicode1_leadership_requires_follower.options.unicode1.unicode1": {"clearable": true, "type": "input", "dependencies": {"default": {"hide": ["unicode1_leadership_requires_follower.options.unicode1.unicode3"]}, "expected": {"test": {"show": ["unicode1_leadership_requires_follower.options.unicode1.unicode3"]}}}}, "unicode1_leadership_requires_follower.options.unicode1.unicode2": {"clearable": true, "type": "input"}, "unicode1_leadership_requires_follower.options.unicode1.unicode3": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_leadership_requires_follower.owner b/tests/data/subconfig_unicode1_leadership_requires_follower.owner similarity index 100% rename from test/data/subconfig_unicode1_leadership_requires_follower.owner rename to tests/data/subconfig_unicode1_leadership_requires_follower.owner diff --git a/test/data/subconfig_unicode1_leadership_requires_follower.prop b/tests/data/subconfig_unicode1_leadership_requires_follower.prop similarity index 100% rename from test/data/subconfig_unicode1_leadership_requires_follower.prop rename to tests/data/subconfig_unicode1_leadership_requires_follower.prop diff --git a/test/data/subconfig_unicode1_leadership_requires_follower.prop2 b/tests/data/subconfig_unicode1_leadership_requires_follower.prop2 similarity index 100% rename from test/data/subconfig_unicode1_leadership_requires_follower.prop2 rename to tests/data/subconfig_unicode1_leadership_requires_follower.prop2 diff --git a/test/data/subconfig_unicode1_leadership_requires_follower_value.dict b/tests/data/subconfig_unicode1_leadership_requires_follower_value.dict similarity index 100% rename from test/data/subconfig_unicode1_leadership_requires_follower_value.dict rename to tests/data/subconfig_unicode1_leadership_requires_follower_value.dict diff --git a/test/data/subconfig_unicode1_leadership_requires_follower_value.info b/tests/data/subconfig_unicode1_leadership_requires_follower_value.info similarity index 100% rename from test/data/subconfig_unicode1_leadership_requires_follower_value.info rename to tests/data/subconfig_unicode1_leadership_requires_follower_value.info diff --git a/tests/data/subconfig_unicode1_leadership_requires_follower_value.json b/tests/data/subconfig_unicode1_leadership_requires_follower_value.json new file mode 100644 index 0000000..91a6730 --- /dev/null +++ b/tests/data/subconfig_unicode1_leadership_requires_follower_value.json @@ -0,0 +1 @@ +{"schema": {"unicode1_leadership_requires_follower_value.options": {"properties": {"unicode1_leadership_requires_follower_value.options.unicode1": {"properties": {"unicode1_leadership_requires_follower_value.options.unicode1.unicode1": {"type": "string", "isMulti": true, "title": "Values 'test' must show 'Unicode follower 2'"}, "unicode1_leadership_requires_follower_value.options.unicode1.unicode2": {"type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership_requires_follower_value.options.unicode1.unicode3": {"type": "string", "isMulti": true, "title": "Unicode follower 2"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_leadership_requires_follower_value.options.unicode1.unicode1": {"required": true, "value": ["test", "pas test"], "owner": "user"}, "unicode1_leadership_requires_follower_value.options.unicode1.unicode2": {"0": {"value": "super1", "owner": "user"}}, "unicode1_leadership_requires_follower_value.options.unicode1.unicode3": {"0": {"value": "super1", "owner": "user"}, "1": {"display": false, "hidden": true}}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"unicode1_leadership_requires_follower_value.options.unicode1.unicode1": {"clearable": true, "type": "input", "dependencies": {"default": {"hide": ["unicode1_leadership_requires_follower_value.options.unicode1.unicode3"]}, "expected": {"test": {"show": ["unicode1_leadership_requires_follower_value.options.unicode1.unicode3"]}}}}, "unicode1_leadership_requires_follower_value.options.unicode1.unicode2": {"clearable": true, "type": "input"}, "unicode1_leadership_requires_follower_value.options.unicode1.unicode3": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_leadership_requires_follower_value.owner b/tests/data/subconfig_unicode1_leadership_requires_follower_value.owner similarity index 100% rename from test/data/subconfig_unicode1_leadership_requires_follower_value.owner rename to tests/data/subconfig_unicode1_leadership_requires_follower_value.owner diff --git a/test/data/subconfig_unicode1_leadership_requires_follower_value.prop b/tests/data/subconfig_unicode1_leadership_requires_follower_value.prop similarity index 100% rename from test/data/subconfig_unicode1_leadership_requires_follower_value.prop rename to tests/data/subconfig_unicode1_leadership_requires_follower_value.prop diff --git a/test/data/subconfig_unicode1_leadership_requires_follower_value.prop2 b/tests/data/subconfig_unicode1_leadership_requires_follower_value.prop2 similarity index 100% rename from test/data/subconfig_unicode1_leadership_requires_follower_value.prop2 rename to tests/data/subconfig_unicode1_leadership_requires_follower_value.prop2 diff --git a/test/data/subconfig_unicode1_leadership_requires_followers.dict b/tests/data/subconfig_unicode1_leadership_requires_followers.dict similarity index 100% rename from test/data/subconfig_unicode1_leadership_requires_followers.dict rename to tests/data/subconfig_unicode1_leadership_requires_followers.dict diff --git a/test/data/subconfig_unicode1_leadership_requires_followers.info b/tests/data/subconfig_unicode1_leadership_requires_followers.info similarity index 100% rename from test/data/subconfig_unicode1_leadership_requires_followers.info rename to tests/data/subconfig_unicode1_leadership_requires_followers.info diff --git a/tests/data/subconfig_unicode1_leadership_requires_followers.json b/tests/data/subconfig_unicode1_leadership_requires_followers.json new file mode 100644 index 0000000..6d1fbf9 --- /dev/null +++ b/tests/data/subconfig_unicode1_leadership_requires_followers.json @@ -0,0 +1 @@ +{"schema": {"unicode1_leadership_requires_followers.options": {"properties": {"unicode1_leadership_requires_followers.options.unicode1": {"properties": {"unicode1_leadership_requires_followers.options.unicode1.unicode1": {"type": "string", "isMulti": true, "title": "Unicode leader"}, "unicode1_leadership_requires_followers.options.unicode1.unicode2": {"type": "string", "isMulti": true, "title": "Values 'test' must show 'Unicode follower 2'"}, "unicode1_leadership_requires_followers.options.unicode1.unicode3": {"type": "string", "isMulti": true, "title": "Unicode follower 2"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_leadership_requires_followers.options.unicode1.unicode1": {"required": true}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"unicode1_leadership_requires_followers.options.unicode1.unicode1": {"clearable": true, "type": "input"}, "unicode1_leadership_requires_followers.options.unicode1.unicode2": {"clearable": true, "type": "input", "dependencies": {"default": {"hide": ["unicode1_leadership_requires_followers.options.unicode1.unicode3"]}, "expected": {"test": {"show": ["unicode1_leadership_requires_followers.options.unicode1.unicode3"]}}}}, "unicode1_leadership_requires_followers.options.unicode1.unicode3": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_leadership_requires_followers.owner b/tests/data/subconfig_unicode1_leadership_requires_followers.owner similarity index 100% rename from test/data/subconfig_unicode1_leadership_requires_followers.owner rename to tests/data/subconfig_unicode1_leadership_requires_followers.owner diff --git a/test/data/subconfig_unicode1_leadership_requires_followers.prop b/tests/data/subconfig_unicode1_leadership_requires_followers.prop similarity index 100% rename from test/data/subconfig_unicode1_leadership_requires_followers.prop rename to tests/data/subconfig_unicode1_leadership_requires_followers.prop diff --git a/test/data/subconfig_unicode1_leadership_requires_followers.prop2 b/tests/data/subconfig_unicode1_leadership_requires_followers.prop2 similarity index 100% rename from test/data/subconfig_unicode1_leadership_requires_followers.prop2 rename to tests/data/subconfig_unicode1_leadership_requires_followers.prop2 diff --git a/test/data/subconfig_unicode1_leadership_requires_leader.dict b/tests/data/subconfig_unicode1_leadership_requires_leader.dict similarity index 100% rename from test/data/subconfig_unicode1_leadership_requires_leader.dict rename to tests/data/subconfig_unicode1_leadership_requires_leader.dict diff --git a/test/data/subconfig_unicode1_leadership_requires_leader.info b/tests/data/subconfig_unicode1_leadership_requires_leader.info similarity index 100% rename from test/data/subconfig_unicode1_leadership_requires_leader.info rename to tests/data/subconfig_unicode1_leadership_requires_leader.info diff --git a/tests/data/subconfig_unicode1_leadership_requires_leader.json b/tests/data/subconfig_unicode1_leadership_requires_leader.json new file mode 100644 index 0000000..06f6770 --- /dev/null +++ b/tests/data/subconfig_unicode1_leadership_requires_leader.json @@ -0,0 +1 @@ +{"schema": {"unicode1_leadership_requires_leader.options": {"properties": {"unicode1_leadership_requires_leader.options.unicode": {"type": "string", "title": "Value 'test' must show leader"}, "unicode1_leadership_requires_leader.options.unicode1": {"properties": {"unicode1_leadership_requires_leader.options.unicode1.unicode1": {"type": "string", "isMulti": true, "title": "Unicode leader"}, "unicode1_leadership_requires_leader.options.unicode1.unicode2": {"type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership_requires_leader.options.unicode1.unicode3": {"type": "string", "isMulti": true, "title": "Unicode follower 2"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_leadership_requires_leader.options.unicode1": {"display": false, "properties": ["hidden"]}, "unicode1_leadership_requires_leader.options.unicode1.unicode1": {"required": true, "hidden": true, "display": false}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"unicode1_leadership_requires_leader.options.unicode": {"clearable": true, "type": "input", "dependencies": {"default": {"hide": ["unicode1_leadership_requires_leader.options.unicode1"]}, "expected": {"test": {"show": ["unicode1_leadership_requires_leader.options.unicode1"]}}}}, "unicode1_leadership_requires_leader.options.unicode1.unicode1": {"clearable": true, "type": "input"}, "unicode1_leadership_requires_leader.options.unicode1.unicode2": {"clearable": true, "type": "input"}, "unicode1_leadership_requires_leader.options.unicode1.unicode3": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_leadership_requires_leader.owner b/tests/data/subconfig_unicode1_leadership_requires_leader.owner similarity index 100% rename from test/data/subconfig_unicode1_leadership_requires_leader.owner rename to tests/data/subconfig_unicode1_leadership_requires_leader.owner diff --git a/test/data/subconfig_unicode1_leadership_requires_leader.prop b/tests/data/subconfig_unicode1_leadership_requires_leader.prop similarity index 100% rename from test/data/subconfig_unicode1_leadership_requires_leader.prop rename to tests/data/subconfig_unicode1_leadership_requires_leader.prop diff --git a/test/data/subconfig_unicode1_leadership_requires_leader.prop2 b/tests/data/subconfig_unicode1_leadership_requires_leader.prop2 similarity index 100% rename from test/data/subconfig_unicode1_leadership_requires_leader.prop2 rename to tests/data/subconfig_unicode1_leadership_requires_leader.prop2 diff --git a/test/data/subconfig_unicode1_leadership_requires_value.dict b/tests/data/subconfig_unicode1_leadership_requires_value.dict similarity index 100% rename from test/data/subconfig_unicode1_leadership_requires_value.dict rename to tests/data/subconfig_unicode1_leadership_requires_value.dict diff --git a/test/data/subconfig_unicode1_leadership_requires_value.info b/tests/data/subconfig_unicode1_leadership_requires_value.info similarity index 100% rename from test/data/subconfig_unicode1_leadership_requires_value.info rename to tests/data/subconfig_unicode1_leadership_requires_value.info diff --git a/tests/data/subconfig_unicode1_leadership_requires_value.json b/tests/data/subconfig_unicode1_leadership_requires_value.json new file mode 100644 index 0000000..b3a7196 --- /dev/null +++ b/tests/data/subconfig_unicode1_leadership_requires_value.json @@ -0,0 +1 @@ +{"schema": {"unicode1_leadership_requires_value.options": {"properties": {"unicode1_leadership_requires_value.options.unicode": {"properties": {"unicode1_leadership_requires_value.options.unicode.unicode": {"type": "string", "isMulti": true, "title": "Values 'test' must show 'Unicode follower 3'"}, "unicode1_leadership_requires_value.options.unicode.unicode1": {"type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership_requires_value.options.unicode.unicode2": {"type": "string", "isMulti": true, "title": "Unicode follower 2"}, "unicode1_leadership_requires_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_requires_value.options.unicode.unicode": {"required": true, "value": ["test", "val2"], "owner": "user"}, "unicode1_leadership_requires_value.options.unicode.unicode1": {"0": {"value": "super1", "owner": "user"}, "1": {"value": "super2", "owner": "user"}}, "unicode1_leadership_requires_value.options.unicode.unicode2": {"0": {"value": "pas test", "owner": "user"}, "1": {"value": "test", "owner": "user"}}, "unicode1_leadership_requires_value.options.unicode.unicode3": {"1": {"display": false, "hidden": true, "value": "super", "owner": "user"}}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"unicode1_leadership_requires_value.options.unicode.unicode": {"clearable": true, "type": "input", "dependencies": {"default": {"hide": ["unicode1_leadership_requires_value.options.unicode.unicode3"]}, "expected": {"test": {"show": ["unicode1_leadership_requires_value.options.unicode.unicode3"]}}}}, "unicode1_leadership_requires_value.options.unicode.unicode1": {"clearable": true, "type": "input"}, "unicode1_leadership_requires_value.options.unicode.unicode2": {"clearable": true, "type": "input"}, "unicode1_leadership_requires_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/test/data/subconfig_unicode1_leadership_requires_value.owner b/tests/data/subconfig_unicode1_leadership_requires_value.owner similarity index 100% rename from test/data/subconfig_unicode1_leadership_requires_value.owner rename to tests/data/subconfig_unicode1_leadership_requires_value.owner diff --git a/test/data/subconfig_unicode1_leadership_requires_value.prop b/tests/data/subconfig_unicode1_leadership_requires_value.prop similarity index 100% rename from test/data/subconfig_unicode1_leadership_requires_value.prop rename to tests/data/subconfig_unicode1_leadership_requires_value.prop diff --git a/test/data/subconfig_unicode1_leadership_requires_value.prop2 b/tests/data/subconfig_unicode1_leadership_requires_value.prop2 similarity index 100% rename from test/data/subconfig_unicode1_leadership_requires_value.prop2 rename to tests/data/subconfig_unicode1_leadership_requires_value.prop2 diff --git a/test/data/subconfig_unicode1_leadership_submulti.dict b/tests/data/subconfig_unicode1_leadership_submulti.dict similarity index 100% rename from test/data/subconfig_unicode1_leadership_submulti.dict rename to tests/data/subconfig_unicode1_leadership_submulti.dict diff --git a/test/data/subconfig_unicode1_leadership_submulti.info b/tests/data/subconfig_unicode1_leadership_submulti.info similarity index 100% rename from test/data/subconfig_unicode1_leadership_submulti.info rename to tests/data/subconfig_unicode1_leadership_submulti.info diff --git a/tests/data/subconfig_unicode1_leadership_submulti.json b/tests/data/subconfig_unicode1_leadership_submulti.json new file mode 100644 index 0000000..db55062 --- /dev/null +++ b/tests/data/subconfig_unicode1_leadership_submulti.json @@ -0,0 +1 @@ +{"schema": {"unicode1_leadership_submulti.options": {"properties": {"unicode1_leadership_submulti.options.unicode": {"properties": {"unicode1_leadership_submulti.options.unicode.unicode": {"type": "string", "isMulti": true, "title": "Unicode leader"}, "unicode1_leadership_submulti.options.unicode.unicode1": {"type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership_submulti.options.unicode.unicode2": {"type": "string", "isMulti": true, "isSubMulti": true, "title": "Unicode follower 2 submulti"}, "unicode1_leadership_submulti.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_submulti.options.unicode.unicode": {"required": true}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"unicode1_leadership_submulti.options.unicode.unicode": {"clearable": true, "type": "input"}, "unicode1_leadership_submulti.options.unicode.unicode1": {"clearable": true, "type": "input"}, "unicode1_leadership_submulti.options.unicode.unicode2": {"clearable": true, "type": "input"}, "unicode1_leadership_submulti.options.unicode.unicode3": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_leadership_submulti.owner b/tests/data/subconfig_unicode1_leadership_submulti.owner similarity index 100% rename from test/data/subconfig_unicode1_leadership_submulti.owner rename to tests/data/subconfig_unicode1_leadership_submulti.owner diff --git a/test/data/subconfig_unicode1_leadership_submulti.prop b/tests/data/subconfig_unicode1_leadership_submulti.prop similarity index 100% rename from test/data/subconfig_unicode1_leadership_submulti.prop rename to tests/data/subconfig_unicode1_leadership_submulti.prop diff --git a/test/data/subconfig_unicode1_leadership_submulti.prop2 b/tests/data/subconfig_unicode1_leadership_submulti.prop2 similarity index 100% rename from test/data/subconfig_unicode1_leadership_submulti.prop2 rename to tests/data/subconfig_unicode1_leadership_submulti.prop2 diff --git a/test/data/subconfig_unicode1_leadership_value.dict b/tests/data/subconfig_unicode1_leadership_value.dict similarity index 100% rename from test/data/subconfig_unicode1_leadership_value.dict rename to tests/data/subconfig_unicode1_leadership_value.dict diff --git a/test/data/subconfig_unicode1_leadership_value.info b/tests/data/subconfig_unicode1_leadership_value.info similarity index 100% rename from test/data/subconfig_unicode1_leadership_value.info rename to tests/data/subconfig_unicode1_leadership_value.info diff --git a/tests/data/subconfig_unicode1_leadership_value.json b/tests/data/subconfig_unicode1_leadership_value.json new file mode 100644 index 0000000..537c82c --- /dev/null +++ b/tests/data/subconfig_unicode1_leadership_value.json @@ -0,0 +1 @@ +{"schema": {"unicode1_leadership_value.options": {"properties": {"unicode1_leadership_value.options.unicode": {"properties": {"unicode1_leadership_value.options.unicode.unicode": {"type": "string", "isMulti": true, "value": ["val1", "val2"], "title": "Unicode leader"}, "unicode1_leadership_value.options.unicode.unicode1": {"type": "string", "isMulti": true, "title": "Unicode follower 1"}, "unicode1_leadership_value.options.unicode.unicode2": {"type": "string", "defaultmulti": "follower2", "isMulti": true, "title": "Unicode follower 2 with default multi"}, "unicode1_leadership_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_value.options.unicode.unicode": {"required": true, "value": ["val3", "val4"], "owner": "user"}, "unicode1_leadership_value.options.unicode.unicode1": {"0": {"value": "super1", "owner": "user"}, "1": {"value": "super2", "owner": "user"}}, "unicode1_leadership_value.options.unicode.unicode2": {"0": {"value": "pas test", "owner": "user"}, "1": {"value": "test", "owner": "user"}}, "unicode1_leadership_value.options.unicode.unicode3": {"1": {"value": "super", "owner": "user"}}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"unicode1_leadership_value.options.unicode.unicode": {"clearable": true, "type": "input"}, "unicode1_leadership_value.options.unicode.unicode1": {"clearable": true, "type": "input"}, "unicode1_leadership_value.options.unicode.unicode2": {"clearable": true, "type": "input"}, "unicode1_leadership_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/test/data/subconfig_unicode1_leadership_value.owner b/tests/data/subconfig_unicode1_leadership_value.owner similarity index 100% rename from test/data/subconfig_unicode1_leadership_value.owner rename to tests/data/subconfig_unicode1_leadership_value.owner diff --git a/test/data/subconfig_unicode1_leadership_value.prop b/tests/data/subconfig_unicode1_leadership_value.prop similarity index 100% rename from test/data/subconfig_unicode1_leadership_value.prop rename to tests/data/subconfig_unicode1_leadership_value.prop diff --git a/test/data/subconfig_unicode1_leadership_value.prop2 b/tests/data/subconfig_unicode1_leadership_value.prop2 similarity index 100% rename from test/data/subconfig_unicode1_leadership_value.prop2 rename to tests/data/subconfig_unicode1_leadership_value.prop2 diff --git a/test/data/subconfig_unicode1_mandatory.dict b/tests/data/subconfig_unicode1_mandatory.dict similarity index 100% rename from test/data/subconfig_unicode1_mandatory.dict rename to tests/data/subconfig_unicode1_mandatory.dict diff --git a/test/data/subconfig_unicode1_mandatory.info b/tests/data/subconfig_unicode1_mandatory.info similarity index 100% rename from test/data/subconfig_unicode1_mandatory.info rename to tests/data/subconfig_unicode1_mandatory.info diff --git a/tests/data/subconfig_unicode1_mandatory.json b/tests/data/subconfig_unicode1_mandatory.json new file mode 100644 index 0000000..4106a54 --- /dev/null +++ b/tests/data/subconfig_unicode1_mandatory.json @@ -0,0 +1 @@ +{"schema": {"unicode1_mandatory.options": {"properties": {"unicode1_mandatory.options.unicode": {"type": "string", "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_mandatory.options.unicode": {"required": true}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"unicode1_mandatory.options.unicode": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_mandatory.owner b/tests/data/subconfig_unicode1_mandatory.owner similarity index 100% rename from test/data/subconfig_unicode1_mandatory.owner rename to tests/data/subconfig_unicode1_mandatory.owner diff --git a/test/data/subconfig_unicode1_mandatory.prop b/tests/data/subconfig_unicode1_mandatory.prop similarity index 100% rename from test/data/subconfig_unicode1_mandatory.prop rename to tests/data/subconfig_unicode1_mandatory.prop diff --git a/test/data/subconfig_unicode1_mandatory.prop2 b/tests/data/subconfig_unicode1_mandatory.prop2 similarity index 100% rename from test/data/subconfig_unicode1_mandatory.prop2 rename to tests/data/subconfig_unicode1_mandatory.prop2 diff --git a/test/data/subconfig_unicode1_mod_value.dict b/tests/data/subconfig_unicode1_mod_value.dict similarity index 100% rename from test/data/subconfig_unicode1_mod_value.dict rename to tests/data/subconfig_unicode1_mod_value.dict diff --git a/test/data/subconfig_unicode1_mod_value.info b/tests/data/subconfig_unicode1_mod_value.info similarity index 100% rename from test/data/subconfig_unicode1_mod_value.info rename to tests/data/subconfig_unicode1_mod_value.info diff --git a/tests/data/subconfig_unicode1_mod_value.json b/tests/data/subconfig_unicode1_mod_value.json new file mode 100644 index 0000000..078e459 --- /dev/null +++ b/tests/data/subconfig_unicode1_mod_value.json @@ -0,0 +1 @@ +{"schema": {"unicode1_mod_value.options": {"properties": {"unicode1_mod_value.options.unicode": {"type": "string", "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_mod_value.options.unicode": {"value": "a", "owner": "user"}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"unicode1_mod_value.options.unicode": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_mod_value.owner b/tests/data/subconfig_unicode1_mod_value.owner similarity index 100% rename from test/data/subconfig_unicode1_mod_value.owner rename to tests/data/subconfig_unicode1_mod_value.owner diff --git a/test/data/subconfig_unicode1_mod_value.prop b/tests/data/subconfig_unicode1_mod_value.prop similarity index 100% rename from test/data/subconfig_unicode1_mod_value.prop rename to tests/data/subconfig_unicode1_mod_value.prop diff --git a/test/data/subconfig_unicode1_mod_value.prop2 b/tests/data/subconfig_unicode1_mod_value.prop2 similarity index 100% rename from test/data/subconfig_unicode1_mod_value.prop2 rename to tests/data/subconfig_unicode1_mod_value.prop2 diff --git a/test/data/subconfig_unicode1_multi.dict b/tests/data/subconfig_unicode1_multi.dict similarity index 100% rename from test/data/subconfig_unicode1_multi.dict rename to tests/data/subconfig_unicode1_multi.dict diff --git a/test/data/subconfig_unicode1_multi.info b/tests/data/subconfig_unicode1_multi.info similarity index 100% rename from test/data/subconfig_unicode1_multi.info rename to tests/data/subconfig_unicode1_multi.info diff --git a/tests/data/subconfig_unicode1_multi.json b/tests/data/subconfig_unicode1_multi.json new file mode 100644 index 0000000..eeea0f9 --- /dev/null +++ b/tests/data/subconfig_unicode1_multi.json @@ -0,0 +1 @@ +{"schema": {"unicode1_multi.options": {"properties": {"unicode1_multi.options.unicode": {"type": "string", "isMulti": true, "title": "Multi string 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_multi.options.unicode": {"required": true}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"unicode1_multi.options.unicode": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi.owner b/tests/data/subconfig_unicode1_multi.owner similarity index 100% rename from test/data/subconfig_unicode1_multi.owner rename to tests/data/subconfig_unicode1_multi.owner diff --git a/test/data/subconfig_unicode1_multi.prop b/tests/data/subconfig_unicode1_multi.prop similarity index 100% rename from test/data/subconfig_unicode1_multi.prop rename to tests/data/subconfig_unicode1_multi.prop diff --git a/test/data/subconfig_unicode1_multi.prop2 b/tests/data/subconfig_unicode1_multi.prop2 similarity index 100% rename from test/data/subconfig_unicode1_multi.prop2 rename to tests/data/subconfig_unicode1_multi.prop2 diff --git a/test/data/subconfig_unicode1_multi_hidden.dict b/tests/data/subconfig_unicode1_multi_hidden.dict similarity index 100% rename from test/data/subconfig_unicode1_multi_hidden.dict rename to tests/data/subconfig_unicode1_multi_hidden.dict diff --git a/test/data/subconfig_unicode1_multi_hidden.info b/tests/data/subconfig_unicode1_multi_hidden.info similarity index 100% rename from test/data/subconfig_unicode1_multi_hidden.info rename to tests/data/subconfig_unicode1_multi_hidden.info diff --git a/tests/data/subconfig_unicode1_multi_hidden.json b/tests/data/subconfig_unicode1_multi_hidden.json new file mode 100644 index 0000000..3014ffc --- /dev/null +++ b/tests/data/subconfig_unicode1_multi_hidden.json @@ -0,0 +1 @@ +{"schema": {"unicode1_multi_hidden.options": {"properties": {"unicode1_multi_hidden.options.unicode": {"type": "string", "isMulti": true, "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_multi_hidden.options.unicode": {"required": true, "display": false, "hidden": true}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"unicode1_multi_hidden.options.unicode": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi_hidden.owner b/tests/data/subconfig_unicode1_multi_hidden.owner similarity index 100% rename from test/data/subconfig_unicode1_multi_hidden.owner rename to tests/data/subconfig_unicode1_multi_hidden.owner diff --git a/test/data/subconfig_unicode1_multi_hidden.prop b/tests/data/subconfig_unicode1_multi_hidden.prop similarity index 100% rename from test/data/subconfig_unicode1_multi_hidden.prop rename to tests/data/subconfig_unicode1_multi_hidden.prop diff --git a/test/data/subconfig_unicode1_multi_hidden.prop2 b/tests/data/subconfig_unicode1_multi_hidden.prop2 similarity index 100% rename from test/data/subconfig_unicode1_multi_hidden.prop2 rename to tests/data/subconfig_unicode1_multi_hidden.prop2 diff --git a/test/data/subconfig_unicode1_multi_mandatory.dict b/tests/data/subconfig_unicode1_multi_mandatory.dict similarity index 100% rename from test/data/subconfig_unicode1_multi_mandatory.dict rename to tests/data/subconfig_unicode1_multi_mandatory.dict diff --git a/test/data/subconfig_unicode1_multi_mandatory.info b/tests/data/subconfig_unicode1_multi_mandatory.info similarity index 100% rename from test/data/subconfig_unicode1_multi_mandatory.info rename to tests/data/subconfig_unicode1_multi_mandatory.info diff --git a/tests/data/subconfig_unicode1_multi_mandatory.json b/tests/data/subconfig_unicode1_multi_mandatory.json new file mode 100644 index 0000000..672ea60 --- /dev/null +++ b/tests/data/subconfig_unicode1_multi_mandatory.json @@ -0,0 +1 @@ +{"schema": {"unicode1_multi_mandatory.options": {"properties": {"unicode1_multi_mandatory.options.unicode": {"type": "string", "isMulti": true, "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_multi_mandatory.options.unicode": {"required": true, "needs_len": true}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"unicode1_multi_mandatory.options.unicode": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi_mandatory.owner b/tests/data/subconfig_unicode1_multi_mandatory.owner similarity index 100% rename from test/data/subconfig_unicode1_multi_mandatory.owner rename to tests/data/subconfig_unicode1_multi_mandatory.owner diff --git a/test/data/subconfig_unicode1_multi_mandatory.prop b/tests/data/subconfig_unicode1_multi_mandatory.prop similarity index 100% rename from test/data/subconfig_unicode1_multi_mandatory.prop rename to tests/data/subconfig_unicode1_multi_mandatory.prop diff --git a/test/data/subconfig_unicode1_multi_mandatory.prop2 b/tests/data/subconfig_unicode1_multi_mandatory.prop2 similarity index 100% rename from test/data/subconfig_unicode1_multi_mandatory.prop2 rename to tests/data/subconfig_unicode1_multi_mandatory.prop2 diff --git a/test/data/subconfig_unicode1_multi_mod_value.dict b/tests/data/subconfig_unicode1_multi_mod_value.dict similarity index 100% rename from test/data/subconfig_unicode1_multi_mod_value.dict rename to tests/data/subconfig_unicode1_multi_mod_value.dict diff --git a/test/data/subconfig_unicode1_multi_mod_value.info b/tests/data/subconfig_unicode1_multi_mod_value.info similarity index 100% rename from test/data/subconfig_unicode1_multi_mod_value.info rename to tests/data/subconfig_unicode1_multi_mod_value.info diff --git a/tests/data/subconfig_unicode1_multi_mod_value.json b/tests/data/subconfig_unicode1_multi_mod_value.json new file mode 100644 index 0000000..c599b77 --- /dev/null +++ b/tests/data/subconfig_unicode1_multi_mod_value.json @@ -0,0 +1 @@ +{"schema": {"unicode1_multi_mod_value.options": {"properties": {"unicode1_multi_mod_value.options.unicode": {"type": "string", "isMulti": true, "value": ["a", "b"], "title": "String 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_multi_mod_value.options.unicode": {"required": true, "value": ["c", "d", "e"], "owner": "user"}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"unicode1_multi_mod_value.options.unicode": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi_mod_value.owner b/tests/data/subconfig_unicode1_multi_mod_value.owner similarity index 100% rename from test/data/subconfig_unicode1_multi_mod_value.owner rename to tests/data/subconfig_unicode1_multi_mod_value.owner diff --git a/test/data/subconfig_unicode1_multi_mod_value.prop b/tests/data/subconfig_unicode1_multi_mod_value.prop similarity index 100% rename from test/data/subconfig_unicode1_multi_mod_value.prop rename to tests/data/subconfig_unicode1_multi_mod_value.prop diff --git a/test/data/subconfig_unicode1_multi_mod_value.prop2 b/tests/data/subconfig_unicode1_multi_mod_value.prop2 similarity index 100% rename from test/data/subconfig_unicode1_multi_mod_value.prop2 rename to tests/data/subconfig_unicode1_multi_mod_value.prop2 diff --git a/test/data/subconfig_unicode1_multi_not_equal_collapse.dict b/tests/data/subconfig_unicode1_multi_not_equal_collapse.dict similarity index 100% rename from test/data/subconfig_unicode1_multi_not_equal_collapse.dict rename to tests/data/subconfig_unicode1_multi_not_equal_collapse.dict diff --git a/test/data/subconfig_unicode1_multi_not_equal_collapse.info b/tests/data/subconfig_unicode1_multi_not_equal_collapse.info similarity index 100% rename from test/data/subconfig_unicode1_multi_not_equal_collapse.info rename to tests/data/subconfig_unicode1_multi_not_equal_collapse.info diff --git a/tests/data/subconfig_unicode1_multi_not_equal_collapse.json b/tests/data/subconfig_unicode1_multi_not_equal_collapse.json new file mode 100644 index 0000000..f7df02c --- /dev/null +++ b/tests/data/subconfig_unicode1_multi_not_equal_collapse.json @@ -0,0 +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 diff --git a/test/data/subconfig_unicode1_multi_not_equal_collapse.owner b/tests/data/subconfig_unicode1_multi_not_equal_collapse.owner similarity index 100% rename from test/data/subconfig_unicode1_multi_not_equal_collapse.owner rename to tests/data/subconfig_unicode1_multi_not_equal_collapse.owner diff --git a/test/data/subconfig_unicode1_multi_not_equal_collapse.prop b/tests/data/subconfig_unicode1_multi_not_equal_collapse.prop similarity index 100% rename from test/data/subconfig_unicode1_multi_not_equal_collapse.prop rename to tests/data/subconfig_unicode1_multi_not_equal_collapse.prop diff --git a/test/data/subconfig_unicode1_multi_not_equal_collapse.prop2 b/tests/data/subconfig_unicode1_multi_not_equal_collapse.prop2 similarity index 100% rename from test/data/subconfig_unicode1_multi_not_equal_collapse.prop2 rename to tests/data/subconfig_unicode1_multi_not_equal_collapse.prop2 diff --git a/test/data/subconfig_unicode1_multi_requires.dict b/tests/data/subconfig_unicode1_multi_requires.dict similarity index 100% rename from test/data/subconfig_unicode1_multi_requires.dict rename to tests/data/subconfig_unicode1_multi_requires.dict diff --git a/test/data/subconfig_unicode1_multi_requires.info b/tests/data/subconfig_unicode1_multi_requires.info similarity index 100% rename from test/data/subconfig_unicode1_multi_requires.info rename to tests/data/subconfig_unicode1_multi_requires.info diff --git a/tests/data/subconfig_unicode1_multi_requires.json b/tests/data/subconfig_unicode1_multi_requires.json new file mode 100644 index 0000000..af12642 --- /dev/null +++ b/tests/data/subconfig_unicode1_multi_requires.json @@ -0,0 +1 @@ +{"schema": {"unicode1_multi_requires.options": {"properties": {"unicode1_multi_requires.options.unicode1": {"type": "string", "title": "Value 'test' must show Unicode 2"}, "unicode1_multi_requires.options.unicode2": {"type": "string", "isMulti": true, "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_multi_requires.options.unicode2": {"required": true, "display": false, "hidden": true}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"unicode1_multi_requires.options.unicode1": {"clearable": true, "type": "input", "dependencies": {"default": {"hide": ["unicode1_multi_requires.options.unicode2"]}, "expected": {"test": {"show": ["unicode1_multi_requires.options.unicode2"]}}}}, "unicode1_multi_requires.options.unicode2": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_multi_requires.owner b/tests/data/subconfig_unicode1_multi_requires.owner similarity index 100% rename from test/data/subconfig_unicode1_multi_requires.owner rename to tests/data/subconfig_unicode1_multi_requires.owner diff --git a/test/data/subconfig_unicode1_multi_requires.prop b/tests/data/subconfig_unicode1_multi_requires.prop similarity index 100% rename from test/data/subconfig_unicode1_multi_requires.prop rename to tests/data/subconfig_unicode1_multi_requires.prop diff --git a/test/data/subconfig_unicode1_multi_requires.prop2 b/tests/data/subconfig_unicode1_multi_requires.prop2 similarity index 100% rename from test/data/subconfig_unicode1_multi_requires.prop2 rename to tests/data/subconfig_unicode1_multi_requires.prop2 diff --git a/test/data/subconfig_unicode1_multi_value.dict b/tests/data/subconfig_unicode1_multi_value.dict similarity index 100% rename from test/data/subconfig_unicode1_multi_value.dict rename to tests/data/subconfig_unicode1_multi_value.dict diff --git a/test/data/subconfig_unicode1_multi_value.info b/tests/data/subconfig_unicode1_multi_value.info similarity index 100% rename from test/data/subconfig_unicode1_multi_value.info rename to tests/data/subconfig_unicode1_multi_value.info diff --git a/tests/data/subconfig_unicode1_multi_value.json b/tests/data/subconfig_unicode1_multi_value.json new file mode 100644 index 0000000..77c9f9d --- /dev/null +++ b/tests/data/subconfig_unicode1_multi_value.json @@ -0,0 +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 diff --git a/test/data/subconfig_unicode1_multi_value.owner b/tests/data/subconfig_unicode1_multi_value.owner similarity index 100% rename from test/data/subconfig_unicode1_multi_value.owner rename to tests/data/subconfig_unicode1_multi_value.owner diff --git a/test/data/subconfig_unicode1_multi_value.prop b/tests/data/subconfig_unicode1_multi_value.prop similarity index 100% rename from test/data/subconfig_unicode1_multi_value.prop rename to tests/data/subconfig_unicode1_multi_value.prop diff --git a/test/data/subconfig_unicode1_multi_value.prop2 b/tests/data/subconfig_unicode1_multi_value.prop2 similarity index 100% rename from test/data/subconfig_unicode1_multi_value.prop2 rename to tests/data/subconfig_unicode1_multi_value.prop2 diff --git a/test/data/subconfig_unicode1_not_equal.dict b/tests/data/subconfig_unicode1_not_equal.dict similarity index 100% rename from test/data/subconfig_unicode1_not_equal.dict rename to tests/data/subconfig_unicode1_not_equal.dict diff --git a/test/data/subconfig_unicode1_not_equal.info b/tests/data/subconfig_unicode1_not_equal.info similarity index 100% rename from test/data/subconfig_unicode1_not_equal.info rename to tests/data/subconfig_unicode1_not_equal.info diff --git a/tests/data/subconfig_unicode1_not_equal.json b/tests/data/subconfig_unicode1_not_equal.json new file mode 100644 index 0000000..9f25757 --- /dev/null +++ b/tests/data/subconfig_unicode1_not_equal.json @@ -0,0 +1 @@ +{"schema": {"unicode1_not_equal.options": {"properties": {"unicode1_not_equal.options.unicode1": {"type": "string", "title": "Unicode 1"}, "unicode1_not_equal.options.unicode2": {"type": "string", "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"unicode1_not_equal.options.unicode1": {"clearable": true, "type": "input", "not_equal": [{"options": ["unicode1_not_equal.options.unicode2"]}]}, "unicode1_not_equal.options.unicode2": {"clearable": true, "type": "input", "not_equal": [{"options": ["unicode1_not_equal.options.unicode1"]}]}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_not_equal.owner b/tests/data/subconfig_unicode1_not_equal.owner similarity index 100% rename from test/data/subconfig_unicode1_not_equal.owner rename to tests/data/subconfig_unicode1_not_equal.owner diff --git a/test/data/subconfig_unicode1_not_equal.prop b/tests/data/subconfig_unicode1_not_equal.prop similarity index 100% rename from test/data/subconfig_unicode1_not_equal.prop rename to tests/data/subconfig_unicode1_not_equal.prop diff --git a/test/data/subconfig_unicode1_not_equal.prop2 b/tests/data/subconfig_unicode1_not_equal.prop2 similarity index 100% rename from test/data/subconfig_unicode1_not_equal.prop2 rename to tests/data/subconfig_unicode1_not_equal.prop2 diff --git a/test/data/subconfig_unicode1_optiondescription_requires.dict b/tests/data/subconfig_unicode1_optiondescription_requires.dict similarity index 100% rename from test/data/subconfig_unicode1_optiondescription_requires.dict rename to tests/data/subconfig_unicode1_optiondescription_requires.dict diff --git a/test/data/subconfig_unicode1_optiondescription_requires.info b/tests/data/subconfig_unicode1_optiondescription_requires.info similarity index 100% rename from test/data/subconfig_unicode1_optiondescription_requires.info rename to tests/data/subconfig_unicode1_optiondescription_requires.info diff --git a/tests/data/subconfig_unicode1_optiondescription_requires.json b/tests/data/subconfig_unicode1_optiondescription_requires.json new file mode 100644 index 0000000..fe4d444 --- /dev/null +++ b/tests/data/subconfig_unicode1_optiondescription_requires.json @@ -0,0 +1 @@ +{"schema": {"unicode1_optiondescription_requires.options": {"properties": {"unicode1_optiondescription_requires.options.unicode1": {"type": "string", "title": "Value 'test' must show OptionDescription"}}, "type": "object", "title": "Common configuration"}, "unicode1_optiondescription_requires.unicode1": {"properties": {"unicode1_optiondescription_requires.unicode1.unicode2": {"type": "string", "title": "Unicode 2"}, "unicode1_optiondescription_requires.unicode1.unicode3": {"type": "string", "title": "Unicode 3"}}, "type": "object", "title": "OptionDescription with 2 options"}}, "model": {"unicode1_optiondescription_requires.unicode1": {"display": false, "properties": ["hidden"]}, "unicode1_optiondescription_requires.unicode1.unicode2": {"hidden": true, "display": false}, "unicode1_optiondescription_requires.unicode1.unicode3": {"hidden": true, "display": false}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"unicode1_optiondescription_requires.options.unicode1": {"clearable": true, "type": "input", "dependencies": {"default": {"hide": ["unicode1_optiondescription_requires.unicode1"]}, "expected": {"test": {"show": ["unicode1_optiondescription_requires.unicode1"]}}}}, "unicode1_optiondescription_requires.unicode1.unicode2": {"clearable": true, "type": "input"}, "unicode1_optiondescription_requires.unicode1.unicode3": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_optiondescription_requires.owner b/tests/data/subconfig_unicode1_optiondescription_requires.owner similarity index 100% rename from test/data/subconfig_unicode1_optiondescription_requires.owner rename to tests/data/subconfig_unicode1_optiondescription_requires.owner diff --git a/test/data/subconfig_unicode1_optiondescription_requires.prop b/tests/data/subconfig_unicode1_optiondescription_requires.prop similarity index 100% rename from test/data/subconfig_unicode1_optiondescription_requires.prop rename to tests/data/subconfig_unicode1_optiondescription_requires.prop diff --git a/test/data/subconfig_unicode1_optiondescription_requires.prop2 b/tests/data/subconfig_unicode1_optiondescription_requires.prop2 similarity index 100% rename from test/data/subconfig_unicode1_optiondescription_requires.prop2 rename to tests/data/subconfig_unicode1_optiondescription_requires.prop2 diff --git a/test/data/subconfig_unicode1_requires.dict b/tests/data/subconfig_unicode1_requires.dict similarity index 100% rename from test/data/subconfig_unicode1_requires.dict rename to tests/data/subconfig_unicode1_requires.dict diff --git a/test/data/subconfig_unicode1_requires.info b/tests/data/subconfig_unicode1_requires.info similarity index 100% rename from test/data/subconfig_unicode1_requires.info rename to tests/data/subconfig_unicode1_requires.info diff --git a/tests/data/subconfig_unicode1_requires.json b/tests/data/subconfig_unicode1_requires.json new file mode 100644 index 0000000..77677d1 --- /dev/null +++ b/tests/data/subconfig_unicode1_requires.json @@ -0,0 +1 @@ +{"schema": {"unicode1_requires.options": {"properties": {"unicode1_requires.options.unicode1": {"type": "string", "title": "Value 'test' must show Unicode 2"}, "unicode1_requires.options.unicode2": {"type": "string", "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode1_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": {"unicode1_requires.options.unicode1": {"clearable": true, "type": "input", "dependencies": {"default": {"hide": ["unicode1_requires.options.unicode2"]}, "expected": {"test": {"show": ["unicode1_requires.options.unicode2"]}}}}, "unicode1_requires.options.unicode2": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode1_requires.owner b/tests/data/subconfig_unicode1_requires.owner similarity index 100% rename from test/data/subconfig_unicode1_requires.owner rename to tests/data/subconfig_unicode1_requires.owner diff --git a/test/data/subconfig_unicode1_requires.prop b/tests/data/subconfig_unicode1_requires.prop similarity index 100% rename from test/data/subconfig_unicode1_requires.prop rename to tests/data/subconfig_unicode1_requires.prop diff --git a/test/data/subconfig_unicode1_requires.prop2 b/tests/data/subconfig_unicode1_requires.prop2 similarity index 100% rename from test/data/subconfig_unicode1_requires.prop2 rename to tests/data/subconfig_unicode1_requires.prop2 diff --git a/test/data/subconfig_unicode1_simple_callback.dict b/tests/data/subconfig_unicode1_simple_callback.dict similarity index 100% rename from test/data/subconfig_unicode1_simple_callback.dict rename to tests/data/subconfig_unicode1_simple_callback.dict diff --git a/test/data/subconfig_unicode1_simple_callback.info b/tests/data/subconfig_unicode1_simple_callback.info similarity index 100% rename from test/data/subconfig_unicode1_simple_callback.info rename to tests/data/subconfig_unicode1_simple_callback.info diff --git a/tests/data/subconfig_unicode1_simple_callback.json b/tests/data/subconfig_unicode1_simple_callback.json new file mode 100644 index 0000000..dd0465b --- /dev/null +++ b/tests/data/subconfig_unicode1_simple_callback.json @@ -0,0 +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 diff --git a/test/data/subconfig_unicode1_simple_callback.owner b/tests/data/subconfig_unicode1_simple_callback.owner similarity index 100% rename from test/data/subconfig_unicode1_simple_callback.owner rename to tests/data/subconfig_unicode1_simple_callback.owner diff --git a/test/data/subconfig_unicode1_simple_callback.prop b/tests/data/subconfig_unicode1_simple_callback.prop similarity index 100% rename from test/data/subconfig_unicode1_simple_callback.prop rename to tests/data/subconfig_unicode1_simple_callback.prop diff --git a/test/data/subconfig_unicode1_simple_callback.prop2 b/tests/data/subconfig_unicode1_simple_callback.prop2 similarity index 100% rename from test/data/subconfig_unicode1_simple_callback.prop2 rename to tests/data/subconfig_unicode1_simple_callback.prop2 diff --git a/test/data/subconfig_unicode2.dict b/tests/data/subconfig_unicode2.dict similarity index 100% rename from test/data/subconfig_unicode2.dict rename to tests/data/subconfig_unicode2.dict diff --git a/test/data/subconfig_unicode2.info b/tests/data/subconfig_unicode2.info similarity index 100% rename from test/data/subconfig_unicode2.info rename to tests/data/subconfig_unicode2.info diff --git a/tests/data/subconfig_unicode2.json b/tests/data/subconfig_unicode2.json new file mode 100644 index 0000000..d8452b5 --- /dev/null +++ b/tests/data/subconfig_unicode2.json @@ -0,0 +1 @@ +{"schema": {"unicode2.options": {"properties": {"unicode2.options.unicode1": {"type": "string", "title": "Unicode 1"}, "unicode2.options.unicode2": {"type": "string", "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"unicode2.options.unicode1": {"clearable": true, "type": "input"}, "unicode2.options.unicode2": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode2.owner b/tests/data/subconfig_unicode2.owner similarity index 100% rename from test/data/subconfig_unicode2.owner rename to tests/data/subconfig_unicode2.owner diff --git a/test/data/subconfig_unicode2.prop b/tests/data/subconfig_unicode2.prop similarity index 100% rename from test/data/subconfig_unicode2.prop rename to tests/data/subconfig_unicode2.prop diff --git a/test/data/subconfig_unicode2.prop2 b/tests/data/subconfig_unicode2.prop2 similarity index 100% rename from test/data/subconfig_unicode2.prop2 rename to tests/data/subconfig_unicode2.prop2 diff --git a/test/data/subconfig_unicode2_copy.dict b/tests/data/subconfig_unicode2_copy.dict similarity index 100% rename from test/data/subconfig_unicode2_copy.dict rename to tests/data/subconfig_unicode2_copy.dict diff --git a/test/data/subconfig_unicode2_copy.info b/tests/data/subconfig_unicode2_copy.info similarity index 100% rename from test/data/subconfig_unicode2_copy.info rename to tests/data/subconfig_unicode2_copy.info diff --git a/tests/data/subconfig_unicode2_copy.json b/tests/data/subconfig_unicode2_copy.json new file mode 100644 index 0000000..5826b62 --- /dev/null +++ b/tests/data/subconfig_unicode2_copy.json @@ -0,0 +1 @@ +{"schema": {"unicode2_copy.options": {"properties": {"unicode2_copy.options.unicode1": {"type": "string", "title": "Unicode 1"}, "unicode2_copy.options.unicode2": {"type": "string", "title": "Unicode 2 (copy)"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"unicode2_copy.options.unicode1": {"clearable": true, "type": "input", "copy": ["unicode2_copy.options.unicode2"]}, "unicode2_copy.options.unicode2": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode2_copy.owner b/tests/data/subconfig_unicode2_copy.owner similarity index 100% rename from test/data/subconfig_unicode2_copy.owner rename to tests/data/subconfig_unicode2_copy.owner diff --git a/test/data/subconfig_unicode2_copy.prop b/tests/data/subconfig_unicode2_copy.prop similarity index 100% rename from test/data/subconfig_unicode2_copy.prop rename to tests/data/subconfig_unicode2_copy.prop diff --git a/test/data/subconfig_unicode2_copy.prop2 b/tests/data/subconfig_unicode2_copy.prop2 similarity index 100% rename from test/data/subconfig_unicode2_copy.prop2 rename to tests/data/subconfig_unicode2_copy.prop2 diff --git a/test/data/subconfig_unicode2_multi_copy.dict b/tests/data/subconfig_unicode2_multi_copy.dict similarity index 100% rename from test/data/subconfig_unicode2_multi_copy.dict rename to tests/data/subconfig_unicode2_multi_copy.dict diff --git a/test/data/subconfig_unicode2_multi_copy.info b/tests/data/subconfig_unicode2_multi_copy.info similarity index 100% rename from test/data/subconfig_unicode2_multi_copy.info rename to tests/data/subconfig_unicode2_multi_copy.info diff --git a/tests/data/subconfig_unicode2_multi_copy.json b/tests/data/subconfig_unicode2_multi_copy.json new file mode 100644 index 0000000..01c2656 --- /dev/null +++ b/tests/data/subconfig_unicode2_multi_copy.json @@ -0,0 +1 @@ +{"schema": {"unicode2_multi_copy.options": {"properties": {"unicode2_multi_copy.options.unicode1": {"type": "string", "isMulti": true, "title": "Unicode 1"}, "unicode2_multi_copy.options.unicode2": {"type": "string", "isMulti": true, "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode2_multi_copy.options.unicode1": {"required": true}, "unicode2_multi_copy.options.unicode2": {"required": true}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"unicode2_multi_copy.options.unicode1": {"clearable": true, "type": "input", "copy": ["unicode2_multi_copy.options.unicode2"]}, "unicode2_multi_copy.options.unicode2": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode2_multi_copy.owner b/tests/data/subconfig_unicode2_multi_copy.owner similarity index 100% rename from test/data/subconfig_unicode2_multi_copy.owner rename to tests/data/subconfig_unicode2_multi_copy.owner diff --git a/test/data/subconfig_unicode2_multi_copy.prop b/tests/data/subconfig_unicode2_multi_copy.prop similarity index 100% rename from test/data/subconfig_unicode2_multi_copy.prop rename to tests/data/subconfig_unicode2_multi_copy.prop diff --git a/test/data/subconfig_unicode2_multi_copy.prop2 b/tests/data/subconfig_unicode2_multi_copy.prop2 similarity index 100% rename from test/data/subconfig_unicode2_multi_copy.prop2 rename to tests/data/subconfig_unicode2_multi_copy.prop2 diff --git a/test/data/subconfig_unicode2_symlink.dict b/tests/data/subconfig_unicode2_symlink.dict similarity index 100% rename from test/data/subconfig_unicode2_symlink.dict rename to tests/data/subconfig_unicode2_symlink.dict diff --git a/test/data/subconfig_unicode2_symlink.info b/tests/data/subconfig_unicode2_symlink.info similarity index 100% rename from test/data/subconfig_unicode2_symlink.info rename to tests/data/subconfig_unicode2_symlink.info diff --git a/tests/data/subconfig_unicode2_symlink.json b/tests/data/subconfig_unicode2_symlink.json new file mode 100644 index 0000000..d606ea0 --- /dev/null +++ b/tests/data/subconfig_unicode2_symlink.json @@ -0,0 +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 diff --git a/test/data/subconfig_unicode2_symlink.owner b/tests/data/subconfig_unicode2_symlink.owner similarity index 100% rename from test/data/subconfig_unicode2_symlink.owner rename to tests/data/subconfig_unicode2_symlink.owner diff --git a/test/data/subconfig_unicode2_symlink.prop b/tests/data/subconfig_unicode2_symlink.prop similarity index 100% rename from test/data/subconfig_unicode2_symlink.prop rename to tests/data/subconfig_unicode2_symlink.prop diff --git a/test/data/subconfig_unicode2_symlink.prop2 b/tests/data/subconfig_unicode2_symlink.prop2 similarity index 100% rename from test/data/subconfig_unicode2_symlink.prop2 rename to tests/data/subconfig_unicode2_symlink.prop2 diff --git a/test/data/subconfig_unicode_hidden.dict b/tests/data/subconfig_unicode_hidden.dict similarity index 100% rename from test/data/subconfig_unicode_hidden.dict rename to tests/data/subconfig_unicode_hidden.dict diff --git a/test/data/subconfig_unicode_hidden.info b/tests/data/subconfig_unicode_hidden.info similarity index 100% rename from test/data/subconfig_unicode_hidden.info rename to tests/data/subconfig_unicode_hidden.info diff --git a/tests/data/subconfig_unicode_hidden.json b/tests/data/subconfig_unicode_hidden.json new file mode 100644 index 0000000..195657a --- /dev/null +++ b/tests/data/subconfig_unicode_hidden.json @@ -0,0 +1 @@ +{"schema": {"unicode_hidden.options": {"properties": {"unicode_hidden.options.unicode": {"type": "string", "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode_hidden.options.unicode": {"display": false, "hidden": true}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"unicode_hidden.options.unicode": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode_hidden.owner b/tests/data/subconfig_unicode_hidden.owner similarity index 100% rename from test/data/subconfig_unicode_hidden.owner rename to tests/data/subconfig_unicode_hidden.owner diff --git a/test/data/subconfig_unicode_hidden.prop b/tests/data/subconfig_unicode_hidden.prop similarity index 100% rename from test/data/subconfig_unicode_hidden.prop rename to tests/data/subconfig_unicode_hidden.prop diff --git a/test/data/subconfig_unicode_hidden.prop2 b/tests/data/subconfig_unicode_hidden.prop2 similarity index 100% rename from test/data/subconfig_unicode_hidden.prop2 rename to tests/data/subconfig_unicode_hidden.prop2 diff --git a/test/data/subconfig_unicode_property.dict b/tests/data/subconfig_unicode_property.dict similarity index 100% rename from test/data/subconfig_unicode_property.dict rename to tests/data/subconfig_unicode_property.dict diff --git a/test/data/subconfig_unicode_property.info b/tests/data/subconfig_unicode_property.info similarity index 100% rename from test/data/subconfig_unicode_property.info rename to tests/data/subconfig_unicode_property.info diff --git a/tests/data/subconfig_unicode_property.json b/tests/data/subconfig_unicode_property.json new file mode 100644 index 0000000..a1b163b --- /dev/null +++ b/tests/data/subconfig_unicode_property.json @@ -0,0 +1 @@ +{"schema": {"unicode_property.options": {"properties": {"unicode_property.options.unicode": {"type": "string", "title": "Expert unicode"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode_property.options.unicode": {"properties": ["expert"]}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"unicode_property.options.unicode": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode_property.owner b/tests/data/subconfig_unicode_property.owner similarity index 100% rename from test/data/subconfig_unicode_property.owner rename to tests/data/subconfig_unicode_property.owner diff --git a/test/data/subconfig_unicode_property.prop b/tests/data/subconfig_unicode_property.prop similarity index 100% rename from test/data/subconfig_unicode_property.prop rename to tests/data/subconfig_unicode_property.prop diff --git a/test/data/subconfig_unicode_property.prop2 b/tests/data/subconfig_unicode_property.prop2 similarity index 100% rename from test/data/subconfig_unicode_property.prop2 rename to tests/data/subconfig_unicode_property.prop2 diff --git a/test/data/subconfig_unicode_property_optiondescription.dict b/tests/data/subconfig_unicode_property_optiondescription.dict similarity index 100% rename from test/data/subconfig_unicode_property_optiondescription.dict rename to tests/data/subconfig_unicode_property_optiondescription.dict diff --git a/test/data/subconfig_unicode_property_optiondescription.info b/tests/data/subconfig_unicode_property_optiondescription.info similarity index 100% rename from test/data/subconfig_unicode_property_optiondescription.info rename to tests/data/subconfig_unicode_property_optiondescription.info diff --git a/tests/data/subconfig_unicode_property_optiondescription.json b/tests/data/subconfig_unicode_property_optiondescription.json new file mode 100644 index 0000000..ca04c8d --- /dev/null +++ b/tests/data/subconfig_unicode_property_optiondescription.json @@ -0,0 +1 @@ +{"schema": {"unicode_property_optiondescription.options": {"properties": {"unicode_property_optiondescription.options.unicode": {"type": "string", "title": "Expert unicode"}}, "type": "object", "title": "Common configuration"}}, "model": {"unicode_property_optiondescription.options": {"properties": ["expert"]}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"unicode_property_optiondescription.options.unicode": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_unicode_property_optiondescription.owner b/tests/data/subconfig_unicode_property_optiondescription.owner similarity index 100% rename from test/data/subconfig_unicode_property_optiondescription.owner rename to tests/data/subconfig_unicode_property_optiondescription.owner diff --git a/test/data/subconfig_unicode_property_optiondescription.prop b/tests/data/subconfig_unicode_property_optiondescription.prop similarity index 100% rename from test/data/subconfig_unicode_property_optiondescription.prop rename to tests/data/subconfig_unicode_property_optiondescription.prop diff --git a/test/data/subconfig_unicode_property_optiondescription.prop2 b/tests/data/subconfig_unicode_property_optiondescription.prop2 similarity index 100% rename from test/data/subconfig_unicode_property_optiondescription.prop2 rename to tests/data/subconfig_unicode_property_optiondescription.prop2 diff --git a/test/data/subconfig_username1.dict b/tests/data/subconfig_username1.dict similarity index 100% rename from test/data/subconfig_username1.dict rename to tests/data/subconfig_username1.dict diff --git a/test/data/subconfig_username1.info b/tests/data/subconfig_username1.info similarity index 100% rename from test/data/subconfig_username1.info rename to tests/data/subconfig_username1.info diff --git a/tests/data/subconfig_username1.json b/tests/data/subconfig_username1.json new file mode 100644 index 0000000..06cb068 --- /dev/null +++ b/tests/data/subconfig_username1.json @@ -0,0 +1 @@ +{"schema": {"username1.options": {"properties": {"username1.options.username": {"type": "username", "title": "Username description"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"username1.options.username": {"clearable": true, "pattern": "^[a-z_][a-z0-9_-]{0,30}[$a-z0-9_-]{0,1}$", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_username1.owner b/tests/data/subconfig_username1.owner similarity index 100% rename from test/data/subconfig_username1.owner rename to tests/data/subconfig_username1.owner diff --git a/test/data/subconfig_username1.prop b/tests/data/subconfig_username1.prop similarity index 100% rename from test/data/subconfig_username1.prop rename to tests/data/subconfig_username1.prop diff --git a/test/data/subconfig_username1.prop2 b/tests/data/subconfig_username1.prop2 similarity index 100% rename from test/data/subconfig_username1.prop2 rename to tests/data/subconfig_username1.prop2 diff --git a/test/data/subconfig_username1_frozen.dict b/tests/data/subconfig_username1_frozen.dict similarity index 100% rename from test/data/subconfig_username1_frozen.dict rename to tests/data/subconfig_username1_frozen.dict diff --git a/test/data/subconfig_username1_frozen.info b/tests/data/subconfig_username1_frozen.info similarity index 100% rename from test/data/subconfig_username1_frozen.info rename to tests/data/subconfig_username1_frozen.info diff --git a/tests/data/subconfig_username1_frozen.json b/tests/data/subconfig_username1_frozen.json new file mode 100644 index 0000000..c6a11e4 --- /dev/null +++ b/tests/data/subconfig_username1_frozen.json @@ -0,0 +1 @@ +{"schema": {"username1_frozen.options": {"properties": {"username1_frozen.options.username": {"type": "username", "title": "Username description frozen"}}, "type": "object", "title": "Common configuration"}}, "model": {"username1_frozen.options.username": {"readOnly": true}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"username1_frozen.options.username": {"clearable": true, "pattern": "^[a-z_][a-z0-9_-]{0,30}[$a-z0-9_-]{0,1}$", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/subconfig_username1_frozen.owner b/tests/data/subconfig_username1_frozen.owner similarity index 100% rename from test/data/subconfig_username1_frozen.owner rename to tests/data/subconfig_username1_frozen.owner diff --git a/test/data/subconfig_username1_frozen.prop b/tests/data/subconfig_username1_frozen.prop similarity index 100% rename from test/data/subconfig_username1_frozen.prop rename to tests/data/subconfig_username1_frozen.prop diff --git a/test/data/subconfig_username1_frozen.prop2 b/tests/data/subconfig_username1_frozen.prop2 similarity index 100% rename from test/data/subconfig_username1_frozen.prop2 rename to tests/data/subconfig_username1_frozen.prop2 diff --git a/test/data/unicode1.dict b/tests/data/unicode1.dict similarity index 100% rename from test/data/unicode1.dict rename to tests/data/unicode1.dict diff --git a/test/data/unicode1.dict1 b/tests/data/unicode1.dict1 similarity index 100% rename from test/data/unicode1.dict1 rename to tests/data/unicode1.dict1 diff --git a/test/data/unicode1.info b/tests/data/unicode1.info similarity index 100% rename from test/data/unicode1.info rename to tests/data/unicode1.info diff --git a/tests/data/unicode1.json b/tests/data/unicode1.json new file mode 100644 index 0000000..01c9d56 --- /dev/null +++ b/tests/data/unicode1.json @@ -0,0 +1 @@ +{"schema": {"options": {"properties": {"options.unicode": {"type": "string", "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "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/test/data/unicode1.mod1 b/tests/data/unicode1.mod1 similarity index 100% rename from test/data/unicode1.mod1 rename to tests/data/unicode1.mod1 diff --git a/test/data/unicode1.owner b/tests/data/unicode1.owner similarity index 100% rename from test/data/unicode1.owner rename to tests/data/unicode1.owner diff --git a/test/data/unicode1.prop b/tests/data/unicode1.prop similarity index 100% rename from test/data/unicode1.prop rename to tests/data/unicode1.prop diff --git a/test/data/unicode1.prop2 b/tests/data/unicode1.prop2 similarity index 100% rename from test/data/unicode1.prop2 rename to tests/data/unicode1.prop2 diff --git a/test/data/unicode1.updates1 b/tests/data/unicode1.updates1 similarity index 100% rename from test/data/unicode1.updates1 rename to tests/data/unicode1.updates1 diff --git a/test/data/unicode1_frozen.dict b/tests/data/unicode1_frozen.dict similarity index 100% rename from test/data/unicode1_frozen.dict rename to tests/data/unicode1_frozen.dict diff --git a/test/data/unicode1_frozen.info b/tests/data/unicode1_frozen.info similarity index 100% rename from test/data/unicode1_frozen.info rename to tests/data/unicode1_frozen.info diff --git a/tests/data/unicode1_frozen.json b/tests/data/unicode1_frozen.json new file mode 100644 index 0000000..524bba2 --- /dev/null +++ b/tests/data/unicode1_frozen.json @@ -0,0 +1 @@ +{"schema": {"options": {"properties": {"options.unicode": {"type": "string", "title": "Unicode 1 frozen"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode": {"readOnly": true}}, "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/test/data/unicode1_frozen.owner b/tests/data/unicode1_frozen.owner similarity index 100% rename from test/data/unicode1_frozen.owner rename to tests/data/unicode1_frozen.owner diff --git a/test/data/unicode1_frozen.prop b/tests/data/unicode1_frozen.prop similarity index 100% rename from test/data/unicode1_frozen.prop rename to tests/data/unicode1_frozen.prop diff --git a/test/data/unicode1_frozen.prop2 b/tests/data/unicode1_frozen.prop2 similarity index 100% rename from test/data/unicode1_frozen.prop2 rename to tests/data/unicode1_frozen.prop2 diff --git a/test/data/unicode1_leader_hidden_followers.dict b/tests/data/unicode1_leader_hidden_followers.dict similarity index 100% rename from test/data/unicode1_leader_hidden_followers.dict rename to tests/data/unicode1_leader_hidden_followers.dict diff --git a/test/data/unicode1_leader_hidden_followers.info b/tests/data/unicode1_leader_hidden_followers.info similarity index 100% rename from test/data/unicode1_leader_hidden_followers.info rename to tests/data/unicode1_leader_hidden_followers.info diff --git a/tests/data/unicode1_leader_hidden_followers.json b/tests/data/unicode1_leader_hidden_followers.json new file mode 100644 index 0000000..22a8023 --- /dev/null +++ b/tests/data/unicode1_leader_hidden_followers.json @@ -0,0 +1 @@ +{"schema": {"options": {"properties": {"options.unicode": {"properties": {"options.unicode.unicode": {"type": "string", "isMulti": true, "title": "Unicode leader"}, "options.unicode.unicode1": {"type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode.unicode2": {"type": "string", "isMulti": true, "title": "Unicode follower 2"}, "options.unicode.unicode3": {"type": "string", "isMulti": true, "title": "Unicode follower 3"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode.unicode": {"required": true, "display": false, "hidden": true}}, "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/test/data/unicode1_leader_hidden_followers.owner b/tests/data/unicode1_leader_hidden_followers.owner similarity index 100% rename from test/data/unicode1_leader_hidden_followers.owner rename to tests/data/unicode1_leader_hidden_followers.owner diff --git a/test/data/unicode1_leader_hidden_followers.prop b/tests/data/unicode1_leader_hidden_followers.prop similarity index 100% rename from test/data/unicode1_leader_hidden_followers.prop rename to tests/data/unicode1_leader_hidden_followers.prop diff --git a/test/data/unicode1_leader_hidden_followers.prop2 b/tests/data/unicode1_leader_hidden_followers.prop2 similarity index 100% rename from test/data/unicode1_leader_hidden_followers.prop2 rename to tests/data/unicode1_leader_hidden_followers.prop2 diff --git a/test/data/unicode1_leadership.dict b/tests/data/unicode1_leadership.dict similarity index 100% rename from test/data/unicode1_leadership.dict rename to tests/data/unicode1_leadership.dict diff --git a/test/data/unicode1_leadership.info b/tests/data/unicode1_leadership.info similarity index 100% rename from test/data/unicode1_leadership.info rename to tests/data/unicode1_leadership.info diff --git a/tests/data/unicode1_leadership.json b/tests/data/unicode1_leadership.json new file mode 100644 index 0000000..2ee935b --- /dev/null +++ b/tests/data/unicode1_leadership.json @@ -0,0 +1 @@ +{"schema": {"options": {"properties": {"options.unicode": {"properties": {"options.unicode.unicode": {"type": "string", "isMulti": true, "title": "Unicode leader"}, "options.unicode.unicode1": {"type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode.unicode2": {"type": "string", "isMulti": true, "title": "Unicode follower 2"}, "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}}, "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/test/data/unicode1_leadership.owner b/tests/data/unicode1_leadership.owner similarity index 100% rename from test/data/unicode1_leadership.owner rename to tests/data/unicode1_leadership.owner diff --git a/test/data/unicode1_leadership.prop b/tests/data/unicode1_leadership.prop similarity index 100% rename from test/data/unicode1_leadership.prop rename to tests/data/unicode1_leadership.prop diff --git a/test/data/unicode1_leadership.prop2 b/tests/data/unicode1_leadership.prop2 similarity index 100% rename from test/data/unicode1_leadership.prop2 rename to tests/data/unicode1_leadership.prop2 diff --git a/test/data/unicode1_leadership_default_value.dict b/tests/data/unicode1_leadership_default_value.dict similarity index 100% rename from test/data/unicode1_leadership_default_value.dict rename to tests/data/unicode1_leadership_default_value.dict diff --git a/test/data/unicode1_leadership_default_value.info b/tests/data/unicode1_leadership_default_value.info similarity index 100% rename from test/data/unicode1_leadership_default_value.info rename to tests/data/unicode1_leadership_default_value.info diff --git a/tests/data/unicode1_leadership_default_value.json b/tests/data/unicode1_leadership_default_value.json new file mode 100644 index 0000000..60e65e9 --- /dev/null +++ b/tests/data/unicode1_leadership_default_value.json @@ -0,0 +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 diff --git a/test/data/unicode1_leadership_default_value.owner b/tests/data/unicode1_leadership_default_value.owner similarity index 100% rename from test/data/unicode1_leadership_default_value.owner rename to tests/data/unicode1_leadership_default_value.owner diff --git a/test/data/unicode1_leadership_default_value.prop b/tests/data/unicode1_leadership_default_value.prop similarity index 100% rename from test/data/unicode1_leadership_default_value.prop rename to tests/data/unicode1_leadership_default_value.prop diff --git a/test/data/unicode1_leadership_default_value.prop2 b/tests/data/unicode1_leadership_default_value.prop2 similarity index 100% rename from test/data/unicode1_leadership_default_value.prop2 rename to tests/data/unicode1_leadership_default_value.prop2 diff --git a/test/data/unicode1_leadership_hidden.dict b/tests/data/unicode1_leadership_hidden.dict similarity index 100% rename from test/data/unicode1_leadership_hidden.dict rename to tests/data/unicode1_leadership_hidden.dict diff --git a/test/data/unicode1_leadership_hidden.info b/tests/data/unicode1_leadership_hidden.info similarity index 100% rename from test/data/unicode1_leadership_hidden.info rename to tests/data/unicode1_leadership_hidden.info diff --git a/tests/data/unicode1_leadership_hidden.json b/tests/data/unicode1_leadership_hidden.json new file mode 100644 index 0000000..231b37c --- /dev/null +++ b/tests/data/unicode1_leadership_hidden.json @@ -0,0 +1 @@ +{"schema": {"options": {"properties": {"options.unicode": {"properties": {"options.unicode.unicode": {"type": "string", "isMulti": true, "title": "Unicode leader"}, "options.unicode.unicode1": {"type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode.unicode2": {"type": "string", "isMulti": true, "title": "Unicode follower 2 hidden"}, "options.unicode.unicode3": {"type": "string", "isMulti": true, "title": "Unicode follower 3"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode.unicode": {"required": true, "value": ["val1", "val2"], "owner": "user"}, "options.unicode.unicode2": {"0": {"display": false, "hidden": true, "value": "super", "owner": "user"}, "1": {"display": false, "hidden": true}, "null": {"display": false}}}, "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/test/data/unicode1_leadership_hidden.owner b/tests/data/unicode1_leadership_hidden.owner similarity index 100% rename from test/data/unicode1_leadership_hidden.owner rename to tests/data/unicode1_leadership_hidden.owner diff --git a/test/data/unicode1_leadership_hidden.prop b/tests/data/unicode1_leadership_hidden.prop similarity index 100% rename from test/data/unicode1_leadership_hidden.prop rename to tests/data/unicode1_leadership_hidden.prop diff --git a/test/data/unicode1_leadership_hidden.prop2 b/tests/data/unicode1_leadership_hidden.prop2 similarity index 100% rename from test/data/unicode1_leadership_hidden.prop2 rename to tests/data/unicode1_leadership_hidden.prop2 diff --git a/test/data/unicode1_leadership_hidden_all_default.dict b/tests/data/unicode1_leadership_hidden_all_default.dict similarity index 100% rename from test/data/unicode1_leadership_hidden_all_default.dict rename to tests/data/unicode1_leadership_hidden_all_default.dict diff --git a/test/data/unicode1_leadership_hidden_all_default.info b/tests/data/unicode1_leadership_hidden_all_default.info similarity index 100% rename from test/data/unicode1_leadership_hidden_all_default.info rename to tests/data/unicode1_leadership_hidden_all_default.info diff --git a/tests/data/unicode1_leadership_hidden_all_default.json b/tests/data/unicode1_leadership_hidden_all_default.json new file mode 100644 index 0000000..e863bc3 --- /dev/null +++ b/tests/data/unicode1_leadership_hidden_all_default.json @@ -0,0 +1 @@ +{"schema": {"options": {"properties": {"options.unicode": {"type": "string", "title": "Unicode leader"}, "options.unicode1": {"properties": {"options.unicode1.unicode1": {"type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode1.unicode2": {"type": "string", "isMulti": true, "title": "Unicode follower 2"}, "options.unicode1.unicode3": {"type": "string", "isMulti": true, "title": "Unicode follower 3"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode1.unicode1": {"required": true}}, "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"}, "options.unicode1.unicode1": {"clearable": true, "type": "input"}, "options.unicode1.unicode2": {"clearable": true, "type": "input"}, "options.unicode1.unicode3": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_leadership_hidden_all_default.owner b/tests/data/unicode1_leadership_hidden_all_default.owner similarity index 100% rename from test/data/unicode1_leadership_hidden_all_default.owner rename to tests/data/unicode1_leadership_hidden_all_default.owner diff --git a/test/data/unicode1_leadership_hidden_all_default.prop b/tests/data/unicode1_leadership_hidden_all_default.prop similarity index 100% rename from test/data/unicode1_leadership_hidden_all_default.prop rename to tests/data/unicode1_leadership_hidden_all_default.prop diff --git a/test/data/unicode1_leadership_hidden_all_default.prop2 b/tests/data/unicode1_leadership_hidden_all_default.prop2 similarity index 100% rename from test/data/unicode1_leadership_hidden_all_default.prop2 rename to tests/data/unicode1_leadership_hidden_all_default.prop2 diff --git a/test/data/unicode1_leadership_not_equal.dict b/tests/data/unicode1_leadership_not_equal.dict similarity index 100% rename from test/data/unicode1_leadership_not_equal.dict rename to tests/data/unicode1_leadership_not_equal.dict diff --git a/test/data/unicode1_leadership_not_equal.info b/tests/data/unicode1_leadership_not_equal.info similarity index 100% rename from test/data/unicode1_leadership_not_equal.info rename to tests/data/unicode1_leadership_not_equal.info diff --git a/tests/data/unicode1_leadership_not_equal.json b/tests/data/unicode1_leadership_not_equal.json new file mode 100644 index 0000000..689ae4a --- /dev/null +++ b/tests/data/unicode1_leadership_not_equal.json @@ -0,0 +1 @@ +{"schema": {"options": {"properties": {"options.unicode": {"properties": {"options.unicode.unicode": {"type": "string", "isMulti": true, "title": "Unicode leader"}, "options.unicode.unicode1": {"type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode.unicode2": {"type": "string", "isMulti": true, "title": "Unicode follower 2 not equal"}, "options.unicode.unicode3": {"type": "string", "isMulti": true, "title": "Unicode follower 3 not equal"}}, "type": "array", "title": "Common configuration 1"}}, "type": "object", "title": "Common configuration 2"}}, "model": {"options.unicode.unicode": {"required": true}}, "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", "not_equal": [{"options": ["options.unicode.unicode3"]}]}, "options.unicode.unicode3": {"clearable": true, "type": "input", "not_equal": [{"options": ["options.unicode.unicode2"]}]}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_leadership_not_equal.owner b/tests/data/unicode1_leadership_not_equal.owner similarity index 100% rename from test/data/unicode1_leadership_not_equal.owner rename to tests/data/unicode1_leadership_not_equal.owner diff --git a/test/data/unicode1_leadership_not_equal.prop b/tests/data/unicode1_leadership_not_equal.prop similarity index 100% rename from test/data/unicode1_leadership_not_equal.prop rename to tests/data/unicode1_leadership_not_equal.prop diff --git a/test/data/unicode1_leadership_not_equal.prop2 b/tests/data/unicode1_leadership_not_equal.prop2 similarity index 100% rename from test/data/unicode1_leadership_not_equal.prop2 rename to tests/data/unicode1_leadership_not_equal.prop2 diff --git a/test/data/unicode1_leadership_requires.dict b/tests/data/unicode1_leadership_requires.dict similarity index 100% rename from test/data/unicode1_leadership_requires.dict rename to tests/data/unicode1_leadership_requires.dict diff --git a/test/data/unicode1_leadership_requires.info b/tests/data/unicode1_leadership_requires.info similarity index 100% rename from test/data/unicode1_leadership_requires.info rename to tests/data/unicode1_leadership_requires.info diff --git a/tests/data/unicode1_leadership_requires.json b/tests/data/unicode1_leadership_requires.json new file mode 100644 index 0000000..29d8a48 --- /dev/null +++ b/tests/data/unicode1_leadership_requires.json @@ -0,0 +1 @@ +{"schema": {"options": {"properties": {"options.unicode": {"properties": {"options.unicode.unicode": {"type": "string", "isMulti": true, "title": "Unicode leader"}, "options.unicode.unicode1": {"type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode.unicode2": {"type": "string", "isMulti": true, "title": "Values 'test' must show 'Unicode follower 3'"}, "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}}, "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", "dependencies": {"default": {"hide": ["options.unicode.unicode3"]}, "expected": {"test": {"show": ["options.unicode.unicode3"]}}}}, "options.unicode.unicode3": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_leadership_requires.owner b/tests/data/unicode1_leadership_requires.owner similarity index 100% rename from test/data/unicode1_leadership_requires.owner rename to tests/data/unicode1_leadership_requires.owner diff --git a/test/data/unicode1_leadership_requires.prop b/tests/data/unicode1_leadership_requires.prop similarity index 100% rename from test/data/unicode1_leadership_requires.prop rename to tests/data/unicode1_leadership_requires.prop diff --git a/test/data/unicode1_leadership_requires.prop2 b/tests/data/unicode1_leadership_requires.prop2 similarity index 100% rename from test/data/unicode1_leadership_requires.prop2 rename to tests/data/unicode1_leadership_requires.prop2 diff --git a/test/data/unicode1_leadership_requires_all.dict b/tests/data/unicode1_leadership_requires_all.dict similarity index 100% rename from test/data/unicode1_leadership_requires_all.dict rename to tests/data/unicode1_leadership_requires_all.dict diff --git a/test/data/unicode1_leadership_requires_all.info b/tests/data/unicode1_leadership_requires_all.info similarity index 100% rename from test/data/unicode1_leadership_requires_all.info rename to tests/data/unicode1_leadership_requires_all.info diff --git a/tests/data/unicode1_leadership_requires_all.json b/tests/data/unicode1_leadership_requires_all.json new file mode 100644 index 0000000..164dfd0 --- /dev/null +++ b/tests/data/unicode1_leadership_requires_all.json @@ -0,0 +1 @@ +{"schema": {"options": {"properties": {"options.unicode": {"type": "string", "title": "Value 'test' must show Leadership"}, "options.unicode1": {"properties": {"options.unicode1.unicode1": {"type": "string", "isMulti": true, "title": "Unicode leader"}, "options.unicode1.unicode2": {"type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode1.unicode3": {"type": "string", "isMulti": true, "title": "Unicode follower 2"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode1": {"display": false, "properties": ["hidden"]}, "options.unicode1.unicode1": {"required": true, "hidden": true, "display": false}}, "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", "dependencies": {"default": {"hide": ["options.unicode1"]}, "expected": {"test": {"show": ["options.unicode1"]}}}}, "options.unicode1.unicode1": {"clearable": true, "type": "input"}, "options.unicode1.unicode2": {"clearable": true, "type": "input"}, "options.unicode1.unicode3": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_leadership_requires_all.owner b/tests/data/unicode1_leadership_requires_all.owner similarity index 100% rename from test/data/unicode1_leadership_requires_all.owner rename to tests/data/unicode1_leadership_requires_all.owner diff --git a/test/data/unicode1_leadership_requires_all.prop b/tests/data/unicode1_leadership_requires_all.prop similarity index 100% rename from test/data/unicode1_leadership_requires_all.prop rename to tests/data/unicode1_leadership_requires_all.prop diff --git a/test/data/unicode1_leadership_requires_all.prop2 b/tests/data/unicode1_leadership_requires_all.prop2 similarity index 100% rename from test/data/unicode1_leadership_requires_all.prop2 rename to tests/data/unicode1_leadership_requires_all.prop2 diff --git a/test/data/unicode1_leadership_requires_follower.dict b/tests/data/unicode1_leadership_requires_follower.dict similarity index 100% rename from test/data/unicode1_leadership_requires_follower.dict rename to tests/data/unicode1_leadership_requires_follower.dict diff --git a/test/data/unicode1_leadership_requires_follower.info b/tests/data/unicode1_leadership_requires_follower.info similarity index 100% rename from test/data/unicode1_leadership_requires_follower.info rename to tests/data/unicode1_leadership_requires_follower.info diff --git a/tests/data/unicode1_leadership_requires_follower.json b/tests/data/unicode1_leadership_requires_follower.json new file mode 100644 index 0000000..a1d7d51 --- /dev/null +++ b/tests/data/unicode1_leadership_requires_follower.json @@ -0,0 +1 @@ +{"schema": {"options": {"properties": {"options.unicode1": {"properties": {"options.unicode1.unicode1": {"type": "string", "isMulti": true, "title": "Values 'test' must show 'Unicode follower 2'"}, "options.unicode1.unicode2": {"type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode1.unicode3": {"type": "string", "isMulti": true, "title": "Unicode follower 2"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode1.unicode1": {"required": true}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"options.unicode1.unicode1": {"clearable": true, "type": "input", "dependencies": {"default": {"hide": ["options.unicode1.unicode3"]}, "expected": {"test": {"show": ["options.unicode1.unicode3"]}}}}, "options.unicode1.unicode2": {"clearable": true, "type": "input"}, "options.unicode1.unicode3": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_leadership_requires_follower.owner b/tests/data/unicode1_leadership_requires_follower.owner similarity index 100% rename from test/data/unicode1_leadership_requires_follower.owner rename to tests/data/unicode1_leadership_requires_follower.owner diff --git a/test/data/unicode1_leadership_requires_follower.prop b/tests/data/unicode1_leadership_requires_follower.prop similarity index 100% rename from test/data/unicode1_leadership_requires_follower.prop rename to tests/data/unicode1_leadership_requires_follower.prop diff --git a/test/data/unicode1_leadership_requires_follower.prop2 b/tests/data/unicode1_leadership_requires_follower.prop2 similarity index 100% rename from test/data/unicode1_leadership_requires_follower.prop2 rename to tests/data/unicode1_leadership_requires_follower.prop2 diff --git a/test/data/unicode1_leadership_requires_follower_value.dict b/tests/data/unicode1_leadership_requires_follower_value.dict similarity index 100% rename from test/data/unicode1_leadership_requires_follower_value.dict rename to tests/data/unicode1_leadership_requires_follower_value.dict diff --git a/test/data/unicode1_leadership_requires_follower_value.info b/tests/data/unicode1_leadership_requires_follower_value.info similarity index 100% rename from test/data/unicode1_leadership_requires_follower_value.info rename to tests/data/unicode1_leadership_requires_follower_value.info diff --git a/tests/data/unicode1_leadership_requires_follower_value.json b/tests/data/unicode1_leadership_requires_follower_value.json new file mode 100644 index 0000000..b4acda9 --- /dev/null +++ b/tests/data/unicode1_leadership_requires_follower_value.json @@ -0,0 +1 @@ +{"schema": {"options": {"properties": {"options.unicode1": {"properties": {"options.unicode1.unicode1": {"type": "string", "isMulti": true, "title": "Values 'test' must show 'Unicode follower 2'"}, "options.unicode1.unicode2": {"type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode1.unicode3": {"type": "string", "isMulti": true, "title": "Unicode follower 2"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode1.unicode1": {"required": true, "value": ["test", "pas test"], "owner": "user"}, "options.unicode1.unicode2": {"0": {"value": "super1", "owner": "user"}}, "options.unicode1.unicode3": {"0": {"value": "super1", "owner": "user"}, "1": {"display": false, "hidden": true}}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"options.unicode1.unicode1": {"clearable": true, "type": "input", "dependencies": {"default": {"hide": ["options.unicode1.unicode3"]}, "expected": {"test": {"show": ["options.unicode1.unicode3"]}}}}, "options.unicode1.unicode2": {"clearable": true, "type": "input"}, "options.unicode1.unicode3": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_leadership_requires_follower_value.owner b/tests/data/unicode1_leadership_requires_follower_value.owner similarity index 100% rename from test/data/unicode1_leadership_requires_follower_value.owner rename to tests/data/unicode1_leadership_requires_follower_value.owner diff --git a/test/data/unicode1_leadership_requires_follower_value.prop b/tests/data/unicode1_leadership_requires_follower_value.prop similarity index 100% rename from test/data/unicode1_leadership_requires_follower_value.prop rename to tests/data/unicode1_leadership_requires_follower_value.prop diff --git a/test/data/unicode1_leadership_requires_follower_value.prop2 b/tests/data/unicode1_leadership_requires_follower_value.prop2 similarity index 100% rename from test/data/unicode1_leadership_requires_follower_value.prop2 rename to tests/data/unicode1_leadership_requires_follower_value.prop2 diff --git a/test/data/unicode1_leadership_requires_followers.dict b/tests/data/unicode1_leadership_requires_followers.dict similarity index 100% rename from test/data/unicode1_leadership_requires_followers.dict rename to tests/data/unicode1_leadership_requires_followers.dict diff --git a/test/data/unicode1_leadership_requires_followers.info b/tests/data/unicode1_leadership_requires_followers.info similarity index 100% rename from test/data/unicode1_leadership_requires_followers.info rename to tests/data/unicode1_leadership_requires_followers.info diff --git a/tests/data/unicode1_leadership_requires_followers.json b/tests/data/unicode1_leadership_requires_followers.json new file mode 100644 index 0000000..e91128e --- /dev/null +++ b/tests/data/unicode1_leadership_requires_followers.json @@ -0,0 +1 @@ +{"schema": {"options": {"properties": {"options.unicode1": {"properties": {"options.unicode1.unicode1": {"type": "string", "isMulti": true, "title": "Unicode leader"}, "options.unicode1.unicode2": {"type": "string", "isMulti": true, "title": "Values 'test' must show 'Unicode follower 2'"}, "options.unicode1.unicode3": {"type": "string", "isMulti": true, "title": "Unicode follower 2"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode1.unicode1": {"required": true}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"options.unicode1.unicode1": {"clearable": true, "type": "input"}, "options.unicode1.unicode2": {"clearable": true, "type": "input", "dependencies": {"default": {"hide": ["options.unicode1.unicode3"]}, "expected": {"test": {"show": ["options.unicode1.unicode3"]}}}}, "options.unicode1.unicode3": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_leadership_requires_followers.owner b/tests/data/unicode1_leadership_requires_followers.owner similarity index 100% rename from test/data/unicode1_leadership_requires_followers.owner rename to tests/data/unicode1_leadership_requires_followers.owner diff --git a/test/data/unicode1_leadership_requires_followers.prop b/tests/data/unicode1_leadership_requires_followers.prop similarity index 100% rename from test/data/unicode1_leadership_requires_followers.prop rename to tests/data/unicode1_leadership_requires_followers.prop diff --git a/test/data/unicode1_leadership_requires_followers.prop2 b/tests/data/unicode1_leadership_requires_followers.prop2 similarity index 100% rename from test/data/unicode1_leadership_requires_followers.prop2 rename to tests/data/unicode1_leadership_requires_followers.prop2 diff --git a/test/data/unicode1_leadership_requires_leader.dict b/tests/data/unicode1_leadership_requires_leader.dict similarity index 100% rename from test/data/unicode1_leadership_requires_leader.dict rename to tests/data/unicode1_leadership_requires_leader.dict diff --git a/test/data/unicode1_leadership_requires_leader.info b/tests/data/unicode1_leadership_requires_leader.info similarity index 100% rename from test/data/unicode1_leadership_requires_leader.info rename to tests/data/unicode1_leadership_requires_leader.info diff --git a/tests/data/unicode1_leadership_requires_leader.json b/tests/data/unicode1_leadership_requires_leader.json new file mode 100644 index 0000000..12ad10d --- /dev/null +++ b/tests/data/unicode1_leadership_requires_leader.json @@ -0,0 +1 @@ +{"schema": {"options": {"properties": {"options.unicode": {"type": "string", "title": "Value 'test' must show leader"}, "options.unicode1": {"properties": {"options.unicode1.unicode1": {"type": "string", "isMulti": true, "title": "Unicode leader"}, "options.unicode1.unicode2": {"type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode1.unicode3": {"type": "string", "isMulti": true, "title": "Unicode follower 2"}}, "type": "array", "title": "Common configuration"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode1": {"display": false, "properties": ["hidden"]}, "options.unicode1.unicode1": {"required": true, "hidden": true, "display": false}}, "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", "dependencies": {"default": {"hide": ["options.unicode1"]}, "expected": {"test": {"show": ["options.unicode1"]}}}}, "options.unicode1.unicode1": {"clearable": true, "type": "input"}, "options.unicode1.unicode2": {"clearable": true, "type": "input"}, "options.unicode1.unicode3": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_leadership_requires_leader.owner b/tests/data/unicode1_leadership_requires_leader.owner similarity index 100% rename from test/data/unicode1_leadership_requires_leader.owner rename to tests/data/unicode1_leadership_requires_leader.owner diff --git a/test/data/unicode1_leadership_requires_leader.prop b/tests/data/unicode1_leadership_requires_leader.prop similarity index 100% rename from test/data/unicode1_leadership_requires_leader.prop rename to tests/data/unicode1_leadership_requires_leader.prop diff --git a/test/data/unicode1_leadership_requires_leader.prop2 b/tests/data/unicode1_leadership_requires_leader.prop2 similarity index 100% rename from test/data/unicode1_leadership_requires_leader.prop2 rename to tests/data/unicode1_leadership_requires_leader.prop2 diff --git a/test/data/unicode1_leadership_requires_value.dict b/tests/data/unicode1_leadership_requires_value.dict similarity index 100% rename from test/data/unicode1_leadership_requires_value.dict rename to tests/data/unicode1_leadership_requires_value.dict diff --git a/test/data/unicode1_leadership_requires_value.info b/tests/data/unicode1_leadership_requires_value.info similarity index 100% rename from test/data/unicode1_leadership_requires_value.info rename to tests/data/unicode1_leadership_requires_value.info diff --git a/tests/data/unicode1_leadership_requires_value.json b/tests/data/unicode1_leadership_requires_value.json new file mode 100644 index 0000000..eca3536 --- /dev/null +++ b/tests/data/unicode1_leadership_requires_value.json @@ -0,0 +1 @@ +{"schema": {"options": {"properties": {"options.unicode": {"properties": {"options.unicode.unicode": {"type": "string", "isMulti": true, "title": "Values 'test' must show 'Unicode follower 3'"}, "options.unicode.unicode1": {"type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode.unicode2": {"type": "string", "isMulti": true, "title": "Unicode follower 2"}, "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": ["test", "val2"], "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"}}, "options.unicode.unicode3": {"1": {"display": false, "hidden": true, "value": "super", "owner": "user"}}}, "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", "dependencies": {"default": {"hide": ["options.unicode.unicode3"]}, "expected": {"test": {"show": ["options.unicode.unicode3"]}}}}, "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/test/data/unicode1_leadership_requires_value.owner b/tests/data/unicode1_leadership_requires_value.owner similarity index 100% rename from test/data/unicode1_leadership_requires_value.owner rename to tests/data/unicode1_leadership_requires_value.owner diff --git a/test/data/unicode1_leadership_requires_value.prop b/tests/data/unicode1_leadership_requires_value.prop similarity index 100% rename from test/data/unicode1_leadership_requires_value.prop rename to tests/data/unicode1_leadership_requires_value.prop diff --git a/test/data/unicode1_leadership_requires_value.prop2 b/tests/data/unicode1_leadership_requires_value.prop2 similarity index 100% rename from test/data/unicode1_leadership_requires_value.prop2 rename to tests/data/unicode1_leadership_requires_value.prop2 diff --git a/test/data/unicode1_leadership_submulti.dict b/tests/data/unicode1_leadership_submulti.dict similarity index 100% rename from test/data/unicode1_leadership_submulti.dict rename to tests/data/unicode1_leadership_submulti.dict diff --git a/test/data/unicode1_leadership_submulti.info b/tests/data/unicode1_leadership_submulti.info similarity index 100% rename from test/data/unicode1_leadership_submulti.info rename to tests/data/unicode1_leadership_submulti.info diff --git a/tests/data/unicode1_leadership_submulti.json b/tests/data/unicode1_leadership_submulti.json new file mode 100644 index 0000000..01e5890 --- /dev/null +++ b/tests/data/unicode1_leadership_submulti.json @@ -0,0 +1 @@ +{"schema": {"options": {"properties": {"options.unicode": {"properties": {"options.unicode.unicode": {"type": "string", "isMulti": true, "title": "Unicode leader"}, "options.unicode.unicode1": {"type": "string", "isMulti": true, "title": "Unicode follower 1"}, "options.unicode.unicode2": {"type": "string", "isMulti": true, "isSubMulti": true, "title": "Unicode follower 2 submulti"}, "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}}, "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/test/data/unicode1_leadership_submulti.owner b/tests/data/unicode1_leadership_submulti.owner similarity index 100% rename from test/data/unicode1_leadership_submulti.owner rename to tests/data/unicode1_leadership_submulti.owner diff --git a/test/data/unicode1_leadership_submulti.prop b/tests/data/unicode1_leadership_submulti.prop similarity index 100% rename from test/data/unicode1_leadership_submulti.prop rename to tests/data/unicode1_leadership_submulti.prop diff --git a/test/data/unicode1_leadership_submulti.prop2 b/tests/data/unicode1_leadership_submulti.prop2 similarity index 100% rename from test/data/unicode1_leadership_submulti.prop2 rename to tests/data/unicode1_leadership_submulti.prop2 diff --git a/test/data/unicode1_leadership_value.dict b/tests/data/unicode1_leadership_value.dict similarity index 100% rename from test/data/unicode1_leadership_value.dict rename to tests/data/unicode1_leadership_value.dict diff --git a/test/data/unicode1_leadership_value.dict1 b/tests/data/unicode1_leadership_value.dict1 similarity index 100% rename from test/data/unicode1_leadership_value.dict1 rename to tests/data/unicode1_leadership_value.dict1 diff --git a/test/data/unicode1_leadership_value.dict2 b/tests/data/unicode1_leadership_value.dict2 similarity index 100% rename from test/data/unicode1_leadership_value.dict2 rename to tests/data/unicode1_leadership_value.dict2 diff --git a/test/data/unicode1_leadership_value.dict3 b/tests/data/unicode1_leadership_value.dict3 similarity index 100% rename from test/data/unicode1_leadership_value.dict3 rename to tests/data/unicode1_leadership_value.dict3 diff --git a/test/data/unicode1_leadership_value.dict4 b/tests/data/unicode1_leadership_value.dict4 similarity index 100% rename from test/data/unicode1_leadership_value.dict4 rename to tests/data/unicode1_leadership_value.dict4 diff --git a/test/data/unicode1_leadership_value.dict5 b/tests/data/unicode1_leadership_value.dict5 similarity index 100% rename from test/data/unicode1_leadership_value.dict5 rename to tests/data/unicode1_leadership_value.dict5 diff --git a/test/data/unicode1_leadership_value.dict6 b/tests/data/unicode1_leadership_value.dict6 similarity index 100% rename from test/data/unicode1_leadership_value.dict6 rename to tests/data/unicode1_leadership_value.dict6 diff --git a/test/data/unicode1_leadership_value.info b/tests/data/unicode1_leadership_value.info similarity index 100% rename from test/data/unicode1_leadership_value.info rename to tests/data/unicode1_leadership_value.info diff --git a/tests/data/unicode1_leadership_value.json b/tests/data/unicode1_leadership_value.json new file mode 100644 index 0000000..02b541d --- /dev/null +++ b/tests/data/unicode1_leadership_value.json @@ -0,0 +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": ["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": "test", "owner": "user"}}, "options.unicode.unicode3": {"1": {"value": "super", "owner": "user"}}}, "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/test/data/unicode1_leadership_value.mod1 b/tests/data/unicode1_leadership_value.mod1 similarity index 100% rename from test/data/unicode1_leadership_value.mod1 rename to tests/data/unicode1_leadership_value.mod1 diff --git a/test/data/unicode1_leadership_value.mod2 b/tests/data/unicode1_leadership_value.mod2 similarity index 100% rename from test/data/unicode1_leadership_value.mod2 rename to tests/data/unicode1_leadership_value.mod2 diff --git a/test/data/unicode1_leadership_value.mod3 b/tests/data/unicode1_leadership_value.mod3 similarity index 100% rename from test/data/unicode1_leadership_value.mod3 rename to tests/data/unicode1_leadership_value.mod3 diff --git a/test/data/unicode1_leadership_value.mod4 b/tests/data/unicode1_leadership_value.mod4 similarity index 100% rename from test/data/unicode1_leadership_value.mod4 rename to tests/data/unicode1_leadership_value.mod4 diff --git a/test/data/unicode1_leadership_value.mod5 b/tests/data/unicode1_leadership_value.mod5 similarity index 100% rename from test/data/unicode1_leadership_value.mod5 rename to tests/data/unicode1_leadership_value.mod5 diff --git a/test/data/unicode1_leadership_value.mod6 b/tests/data/unicode1_leadership_value.mod6 similarity index 100% rename from test/data/unicode1_leadership_value.mod6 rename to tests/data/unicode1_leadership_value.mod6 diff --git a/test/data/unicode1_leadership_value.owner b/tests/data/unicode1_leadership_value.owner similarity index 100% rename from test/data/unicode1_leadership_value.owner rename to tests/data/unicode1_leadership_value.owner diff --git a/test/data/unicode1_leadership_value.prop b/tests/data/unicode1_leadership_value.prop similarity index 100% rename from test/data/unicode1_leadership_value.prop rename to tests/data/unicode1_leadership_value.prop diff --git a/test/data/unicode1_leadership_value.prop2 b/tests/data/unicode1_leadership_value.prop2 similarity index 100% rename from test/data/unicode1_leadership_value.prop2 rename to tests/data/unicode1_leadership_value.prop2 diff --git a/test/data/unicode1_leadership_value.updates1 b/tests/data/unicode1_leadership_value.updates1 similarity index 100% rename from test/data/unicode1_leadership_value.updates1 rename to tests/data/unicode1_leadership_value.updates1 diff --git a/test/data/unicode1_leadership_value.updates2 b/tests/data/unicode1_leadership_value.updates2 similarity index 100% rename from test/data/unicode1_leadership_value.updates2 rename to tests/data/unicode1_leadership_value.updates2 diff --git a/test/data/unicode1_leadership_value.updates3 b/tests/data/unicode1_leadership_value.updates3 similarity index 100% rename from test/data/unicode1_leadership_value.updates3 rename to tests/data/unicode1_leadership_value.updates3 diff --git a/test/data/unicode1_leadership_value.updates4 b/tests/data/unicode1_leadership_value.updates4 similarity index 100% rename from test/data/unicode1_leadership_value.updates4 rename to tests/data/unicode1_leadership_value.updates4 diff --git a/test/data/unicode1_leadership_value.updates5 b/tests/data/unicode1_leadership_value.updates5 similarity index 100% rename from test/data/unicode1_leadership_value.updates5 rename to tests/data/unicode1_leadership_value.updates5 diff --git a/test/data/unicode1_leadership_value.updates6 b/tests/data/unicode1_leadership_value.updates6 similarity index 100% rename from test/data/unicode1_leadership_value.updates6 rename to tests/data/unicode1_leadership_value.updates6 diff --git a/test/data/unicode1_mandatory.dict b/tests/data/unicode1_mandatory.dict similarity index 100% rename from test/data/unicode1_mandatory.dict rename to tests/data/unicode1_mandatory.dict diff --git a/test/data/unicode1_mandatory.info b/tests/data/unicode1_mandatory.info similarity index 100% rename from test/data/unicode1_mandatory.info rename to tests/data/unicode1_mandatory.info diff --git a/tests/data/unicode1_mandatory.json b/tests/data/unicode1_mandatory.json new file mode 100644 index 0000000..51ea6cb --- /dev/null +++ b/tests/data/unicode1_mandatory.json @@ -0,0 +1 @@ +{"schema": {"options": {"properties": {"options.unicode": {"type": "string", "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode": {"required": true}}, "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/test/data/unicode1_mandatory.owner b/tests/data/unicode1_mandatory.owner similarity index 100% rename from test/data/unicode1_mandatory.owner rename to tests/data/unicode1_mandatory.owner diff --git a/test/data/unicode1_mandatory.prop b/tests/data/unicode1_mandatory.prop similarity index 100% rename from test/data/unicode1_mandatory.prop rename to tests/data/unicode1_mandatory.prop diff --git a/test/data/unicode1_mandatory.prop2 b/tests/data/unicode1_mandatory.prop2 similarity index 100% rename from test/data/unicode1_mandatory.prop2 rename to tests/data/unicode1_mandatory.prop2 diff --git a/test/data/unicode1_mod_value.dict b/tests/data/unicode1_mod_value.dict similarity index 100% rename from test/data/unicode1_mod_value.dict rename to tests/data/unicode1_mod_value.dict diff --git a/test/data/unicode1_mod_value.dict1 b/tests/data/unicode1_mod_value.dict1 similarity index 100% rename from test/data/unicode1_mod_value.dict1 rename to tests/data/unicode1_mod_value.dict1 diff --git a/test/data/unicode1_mod_value.dict2 b/tests/data/unicode1_mod_value.dict2 similarity index 100% rename from test/data/unicode1_mod_value.dict2 rename to tests/data/unicode1_mod_value.dict2 diff --git a/test/data/unicode1_mod_value.info b/tests/data/unicode1_mod_value.info similarity index 100% rename from test/data/unicode1_mod_value.info rename to tests/data/unicode1_mod_value.info diff --git a/tests/data/unicode1_mod_value.json b/tests/data/unicode1_mod_value.json new file mode 100644 index 0000000..05c6b77 --- /dev/null +++ b/tests/data/unicode1_mod_value.json @@ -0,0 +1 @@ +{"schema": {"options": {"properties": {"options.unicode": {"type": "string", "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode": {"value": "a", "owner": "user"}}, "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/test/data/unicode1_mod_value.mod1 b/tests/data/unicode1_mod_value.mod1 similarity index 100% rename from test/data/unicode1_mod_value.mod1 rename to tests/data/unicode1_mod_value.mod1 diff --git a/test/data/unicode1_mod_value.mod2 b/tests/data/unicode1_mod_value.mod2 similarity index 100% rename from test/data/unicode1_mod_value.mod2 rename to tests/data/unicode1_mod_value.mod2 diff --git a/test/data/unicode1_mod_value.owner b/tests/data/unicode1_mod_value.owner similarity index 100% rename from test/data/unicode1_mod_value.owner rename to tests/data/unicode1_mod_value.owner diff --git a/test/data/unicode1_mod_value.prop b/tests/data/unicode1_mod_value.prop similarity index 100% rename from test/data/unicode1_mod_value.prop rename to tests/data/unicode1_mod_value.prop diff --git a/test/data/unicode1_mod_value.prop2 b/tests/data/unicode1_mod_value.prop2 similarity index 100% rename from test/data/unicode1_mod_value.prop2 rename to tests/data/unicode1_mod_value.prop2 diff --git a/test/data/unicode1_mod_value.updates1 b/tests/data/unicode1_mod_value.updates1 similarity index 100% rename from test/data/unicode1_mod_value.updates1 rename to tests/data/unicode1_mod_value.updates1 diff --git a/test/data/unicode1_mod_value.updates2 b/tests/data/unicode1_mod_value.updates2 similarity index 100% rename from test/data/unicode1_mod_value.updates2 rename to tests/data/unicode1_mod_value.updates2 diff --git a/test/data/unicode1_multi.dict b/tests/data/unicode1_multi.dict similarity index 100% rename from test/data/unicode1_multi.dict rename to tests/data/unicode1_multi.dict diff --git a/test/data/unicode1_multi.dict1 b/tests/data/unicode1_multi.dict1 similarity index 100% rename from test/data/unicode1_multi.dict1 rename to tests/data/unicode1_multi.dict1 diff --git a/test/data/unicode1_multi.info b/tests/data/unicode1_multi.info similarity index 100% rename from test/data/unicode1_multi.info rename to tests/data/unicode1_multi.info diff --git a/tests/data/unicode1_multi.json b/tests/data/unicode1_multi.json new file mode 100644 index 0000000..c890dcf --- /dev/null +++ b/tests/data/unicode1_multi.json @@ -0,0 +1 @@ +{"schema": {"options": {"properties": {"options.unicode": {"type": "string", "isMulti": true, "title": "Multi string 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode": {"required": true}}, "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/test/data/unicode1_multi.mod1 b/tests/data/unicode1_multi.mod1 similarity index 100% rename from test/data/unicode1_multi.mod1 rename to tests/data/unicode1_multi.mod1 diff --git a/test/data/unicode1_multi.owner b/tests/data/unicode1_multi.owner similarity index 100% rename from test/data/unicode1_multi.owner rename to tests/data/unicode1_multi.owner diff --git a/test/data/unicode1_multi.prop b/tests/data/unicode1_multi.prop similarity index 100% rename from test/data/unicode1_multi.prop rename to tests/data/unicode1_multi.prop diff --git a/test/data/unicode1_multi.prop2 b/tests/data/unicode1_multi.prop2 similarity index 100% rename from test/data/unicode1_multi.prop2 rename to tests/data/unicode1_multi.prop2 diff --git a/test/data/unicode1_multi.updates1 b/tests/data/unicode1_multi.updates1 similarity index 100% rename from test/data/unicode1_multi.updates1 rename to tests/data/unicode1_multi.updates1 diff --git a/test/data/unicode1_multi_hidden.dict b/tests/data/unicode1_multi_hidden.dict similarity index 100% rename from test/data/unicode1_multi_hidden.dict rename to tests/data/unicode1_multi_hidden.dict diff --git a/test/data/unicode1_multi_hidden.info b/tests/data/unicode1_multi_hidden.info similarity index 100% rename from test/data/unicode1_multi_hidden.info rename to tests/data/unicode1_multi_hidden.info diff --git a/tests/data/unicode1_multi_hidden.json b/tests/data/unicode1_multi_hidden.json new file mode 100644 index 0000000..0c0dae8 --- /dev/null +++ b/tests/data/unicode1_multi_hidden.json @@ -0,0 +1 @@ +{"schema": {"options": {"properties": {"options.unicode": {"type": "string", "isMulti": true, "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode": {"required": true, "display": false, "hidden": true}}, "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/test/data/unicode1_multi_hidden.owner b/tests/data/unicode1_multi_hidden.owner similarity index 100% rename from test/data/unicode1_multi_hidden.owner rename to tests/data/unicode1_multi_hidden.owner diff --git a/test/data/unicode1_multi_hidden.prop b/tests/data/unicode1_multi_hidden.prop similarity index 100% rename from test/data/unicode1_multi_hidden.prop rename to tests/data/unicode1_multi_hidden.prop diff --git a/test/data/unicode1_multi_hidden.prop2 b/tests/data/unicode1_multi_hidden.prop2 similarity index 100% rename from test/data/unicode1_multi_hidden.prop2 rename to tests/data/unicode1_multi_hidden.prop2 diff --git a/test/data/unicode1_multi_mandatory.dict b/tests/data/unicode1_multi_mandatory.dict similarity index 100% rename from test/data/unicode1_multi_mandatory.dict rename to tests/data/unicode1_multi_mandatory.dict diff --git a/test/data/unicode1_multi_mandatory.info b/tests/data/unicode1_multi_mandatory.info similarity index 100% rename from test/data/unicode1_multi_mandatory.info rename to tests/data/unicode1_multi_mandatory.info diff --git a/tests/data/unicode1_multi_mandatory.json b/tests/data/unicode1_multi_mandatory.json new file mode 100644 index 0000000..a8afe68 --- /dev/null +++ b/tests/data/unicode1_multi_mandatory.json @@ -0,0 +1 @@ +{"schema": {"options": {"properties": {"options.unicode": {"type": "string", "isMulti": true, "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode": {"required": true, "needs_len": true}}, "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/test/data/unicode1_multi_mandatory.owner b/tests/data/unicode1_multi_mandatory.owner similarity index 100% rename from test/data/unicode1_multi_mandatory.owner rename to tests/data/unicode1_multi_mandatory.owner diff --git a/test/data/unicode1_multi_mandatory.prop b/tests/data/unicode1_multi_mandatory.prop similarity index 100% rename from test/data/unicode1_multi_mandatory.prop rename to tests/data/unicode1_multi_mandatory.prop diff --git a/test/data/unicode1_multi_mandatory.prop2 b/tests/data/unicode1_multi_mandatory.prop2 similarity index 100% rename from test/data/unicode1_multi_mandatory.prop2 rename to tests/data/unicode1_multi_mandatory.prop2 diff --git a/test/data/unicode1_multi_mod_value.dict b/tests/data/unicode1_multi_mod_value.dict similarity index 100% rename from test/data/unicode1_multi_mod_value.dict rename to tests/data/unicode1_multi_mod_value.dict diff --git a/test/data/unicode1_multi_mod_value.dict1 b/tests/data/unicode1_multi_mod_value.dict1 similarity index 100% rename from test/data/unicode1_multi_mod_value.dict1 rename to tests/data/unicode1_multi_mod_value.dict1 diff --git a/test/data/unicode1_multi_mod_value.dict2 b/tests/data/unicode1_multi_mod_value.dict2 similarity index 100% rename from test/data/unicode1_multi_mod_value.dict2 rename to tests/data/unicode1_multi_mod_value.dict2 diff --git a/test/data/unicode1_multi_mod_value.info b/tests/data/unicode1_multi_mod_value.info similarity index 100% rename from test/data/unicode1_multi_mod_value.info rename to tests/data/unicode1_multi_mod_value.info diff --git a/tests/data/unicode1_multi_mod_value.json b/tests/data/unicode1_multi_mod_value.json new file mode 100644 index 0000000..f2c782e --- /dev/null +++ b/tests/data/unicode1_multi_mod_value.json @@ -0,0 +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": ["c", "d", "e"], "owner": "user"}}, "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/test/data/unicode1_multi_mod_value.mod1 b/tests/data/unicode1_multi_mod_value.mod1 similarity index 100% rename from test/data/unicode1_multi_mod_value.mod1 rename to tests/data/unicode1_multi_mod_value.mod1 diff --git a/test/data/unicode1_multi_mod_value.mod2 b/tests/data/unicode1_multi_mod_value.mod2 similarity index 100% rename from test/data/unicode1_multi_mod_value.mod2 rename to tests/data/unicode1_multi_mod_value.mod2 diff --git a/test/data/unicode1_multi_mod_value.owner b/tests/data/unicode1_multi_mod_value.owner similarity index 100% rename from test/data/unicode1_multi_mod_value.owner rename to tests/data/unicode1_multi_mod_value.owner diff --git a/test/data/unicode1_multi_mod_value.prop b/tests/data/unicode1_multi_mod_value.prop similarity index 100% rename from test/data/unicode1_multi_mod_value.prop rename to tests/data/unicode1_multi_mod_value.prop diff --git a/test/data/unicode1_multi_mod_value.prop2 b/tests/data/unicode1_multi_mod_value.prop2 similarity index 100% rename from test/data/unicode1_multi_mod_value.prop2 rename to tests/data/unicode1_multi_mod_value.prop2 diff --git a/test/data/unicode1_multi_mod_value.updates1 b/tests/data/unicode1_multi_mod_value.updates1 similarity index 100% rename from test/data/unicode1_multi_mod_value.updates1 rename to tests/data/unicode1_multi_mod_value.updates1 diff --git a/test/data/unicode1_multi_mod_value.updates2 b/tests/data/unicode1_multi_mod_value.updates2 similarity index 100% rename from test/data/unicode1_multi_mod_value.updates2 rename to tests/data/unicode1_multi_mod_value.updates2 diff --git a/test/data/unicode1_multi_not_equal_collapse.dict b/tests/data/unicode1_multi_not_equal_collapse.dict similarity index 100% rename from test/data/unicode1_multi_not_equal_collapse.dict rename to tests/data/unicode1_multi_not_equal_collapse.dict diff --git a/test/data/unicode1_multi_not_equal_collapse.info b/tests/data/unicode1_multi_not_equal_collapse.info similarity index 100% rename from test/data/unicode1_multi_not_equal_collapse.info rename to tests/data/unicode1_multi_not_equal_collapse.info diff --git a/tests/data/unicode1_multi_not_equal_collapse.json b/tests/data/unicode1_multi_not_equal_collapse.json new file mode 100644 index 0000000..1b7c28d --- /dev/null +++ b/tests/data/unicode1_multi_not_equal_collapse.json @@ -0,0 +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 diff --git a/test/data/unicode1_multi_not_equal_collapse.owner b/tests/data/unicode1_multi_not_equal_collapse.owner similarity index 100% rename from test/data/unicode1_multi_not_equal_collapse.owner rename to tests/data/unicode1_multi_not_equal_collapse.owner diff --git a/test/data/unicode1_multi_not_equal_collapse.prop b/tests/data/unicode1_multi_not_equal_collapse.prop similarity index 100% rename from test/data/unicode1_multi_not_equal_collapse.prop rename to tests/data/unicode1_multi_not_equal_collapse.prop diff --git a/test/data/unicode1_multi_not_equal_collapse.prop2 b/tests/data/unicode1_multi_not_equal_collapse.prop2 similarity index 100% rename from test/data/unicode1_multi_not_equal_collapse.prop2 rename to tests/data/unicode1_multi_not_equal_collapse.prop2 diff --git a/test/data/unicode1_multi_requires.dict b/tests/data/unicode1_multi_requires.dict similarity index 100% rename from test/data/unicode1_multi_requires.dict rename to tests/data/unicode1_multi_requires.dict diff --git a/test/data/unicode1_multi_requires.info b/tests/data/unicode1_multi_requires.info similarity index 100% rename from test/data/unicode1_multi_requires.info rename to tests/data/unicode1_multi_requires.info diff --git a/tests/data/unicode1_multi_requires.json b/tests/data/unicode1_multi_requires.json new file mode 100644 index 0000000..edfb5d6 --- /dev/null +++ b/tests/data/unicode1_multi_requires.json @@ -0,0 +1 @@ +{"schema": {"options": {"properties": {"options.unicode1": {"type": "string", "title": "Value 'test' must show Unicode 2"}, "options.unicode2": {"type": "string", "isMulti": true, "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode2": {"required": true, "display": false, "hidden": true}}, "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", "dependencies": {"default": {"hide": ["options.unicode2"]}, "expected": {"test": {"show": ["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/test/data/unicode1_multi_requires.owner b/tests/data/unicode1_multi_requires.owner similarity index 100% rename from test/data/unicode1_multi_requires.owner rename to tests/data/unicode1_multi_requires.owner diff --git a/test/data/unicode1_multi_requires.prop b/tests/data/unicode1_multi_requires.prop similarity index 100% rename from test/data/unicode1_multi_requires.prop rename to tests/data/unicode1_multi_requires.prop diff --git a/test/data/unicode1_multi_requires.prop2 b/tests/data/unicode1_multi_requires.prop2 similarity index 100% rename from test/data/unicode1_multi_requires.prop2 rename to tests/data/unicode1_multi_requires.prop2 diff --git a/test/data/unicode1_multi_value.dict b/tests/data/unicode1_multi_value.dict similarity index 100% rename from test/data/unicode1_multi_value.dict rename to tests/data/unicode1_multi_value.dict diff --git a/test/data/unicode1_multi_value.info b/tests/data/unicode1_multi_value.info similarity index 100% rename from test/data/unicode1_multi_value.info rename to tests/data/unicode1_multi_value.info diff --git a/tests/data/unicode1_multi_value.json b/tests/data/unicode1_multi_value.json new file mode 100644 index 0000000..47a27ad --- /dev/null +++ b/tests/data/unicode1_multi_value.json @@ -0,0 +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 diff --git a/test/data/unicode1_multi_value.owner b/tests/data/unicode1_multi_value.owner similarity index 100% rename from test/data/unicode1_multi_value.owner rename to tests/data/unicode1_multi_value.owner diff --git a/test/data/unicode1_multi_value.prop b/tests/data/unicode1_multi_value.prop similarity index 100% rename from test/data/unicode1_multi_value.prop rename to tests/data/unicode1_multi_value.prop diff --git a/test/data/unicode1_multi_value.prop2 b/tests/data/unicode1_multi_value.prop2 similarity index 100% rename from test/data/unicode1_multi_value.prop2 rename to tests/data/unicode1_multi_value.prop2 diff --git a/test/data/unicode1_not_equal.dict b/tests/data/unicode1_not_equal.dict similarity index 100% rename from test/data/unicode1_not_equal.dict rename to tests/data/unicode1_not_equal.dict diff --git a/test/data/unicode1_not_equal.info b/tests/data/unicode1_not_equal.info similarity index 100% rename from test/data/unicode1_not_equal.info rename to tests/data/unicode1_not_equal.info diff --git a/tests/data/unicode1_not_equal.json b/tests/data/unicode1_not_equal.json new file mode 100644 index 0000000..4fe5f06 --- /dev/null +++ b/tests/data/unicode1_not_equal.json @@ -0,0 +1 @@ +{"schema": {"options": {"properties": {"options.unicode1": {"type": "string", "title": "Unicode 1"}, "options.unicode2": {"type": "string", "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "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", "not_equal": [{"options": ["options.unicode2"]}]}, "options.unicode2": {"clearable": true, "type": "input", "not_equal": [{"options": ["options.unicode1"]}]}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_not_equal.owner b/tests/data/unicode1_not_equal.owner similarity index 100% rename from test/data/unicode1_not_equal.owner rename to tests/data/unicode1_not_equal.owner diff --git a/test/data/unicode1_not_equal.prop b/tests/data/unicode1_not_equal.prop similarity index 100% rename from test/data/unicode1_not_equal.prop rename to tests/data/unicode1_not_equal.prop diff --git a/test/data/unicode1_not_equal.prop2 b/tests/data/unicode1_not_equal.prop2 similarity index 100% rename from test/data/unicode1_not_equal.prop2 rename to tests/data/unicode1_not_equal.prop2 diff --git a/test/data/unicode1_optiondescription_requires.dict b/tests/data/unicode1_optiondescription_requires.dict similarity index 100% rename from test/data/unicode1_optiondescription_requires.dict rename to tests/data/unicode1_optiondescription_requires.dict diff --git a/test/data/unicode1_optiondescription_requires.info b/tests/data/unicode1_optiondescription_requires.info similarity index 100% rename from test/data/unicode1_optiondescription_requires.info rename to tests/data/unicode1_optiondescription_requires.info diff --git a/tests/data/unicode1_optiondescription_requires.json b/tests/data/unicode1_optiondescription_requires.json new file mode 100644 index 0000000..de3aa5c --- /dev/null +++ b/tests/data/unicode1_optiondescription_requires.json @@ -0,0 +1 @@ +{"schema": {"options": {"properties": {"options.unicode1": {"type": "string", "title": "Value 'test' must show OptionDescription"}}, "type": "object", "title": "Common configuration"}, "unicode1": {"properties": {"unicode1.unicode2": {"type": "string", "title": "Unicode 2"}, "unicode1.unicode3": {"type": "string", "title": "Unicode 3"}}, "type": "object", "title": "OptionDescription with 2 options"}}, "model": {"unicode1": {"display": false, "properties": ["hidden"]}, "unicode1.unicode2": {"hidden": true, "display": false}, "unicode1.unicode3": {"hidden": true, "display": false}}, "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", "dependencies": {"default": {"hide": ["unicode1"]}, "expected": {"test": {"show": ["unicode1"]}}}}, "unicode1.unicode2": {"clearable": true, "type": "input"}, "unicode1.unicode3": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode1_optiondescription_requires.owner b/tests/data/unicode1_optiondescription_requires.owner similarity index 100% rename from test/data/unicode1_optiondescription_requires.owner rename to tests/data/unicode1_optiondescription_requires.owner diff --git a/test/data/unicode1_optiondescription_requires.prop b/tests/data/unicode1_optiondescription_requires.prop similarity index 100% rename from test/data/unicode1_optiondescription_requires.prop rename to tests/data/unicode1_optiondescription_requires.prop diff --git a/test/data/unicode1_optiondescription_requires.prop2 b/tests/data/unicode1_optiondescription_requires.prop2 similarity index 100% rename from test/data/unicode1_optiondescription_requires.prop2 rename to tests/data/unicode1_optiondescription_requires.prop2 diff --git a/test/data/unicode1_requires.dict b/tests/data/unicode1_requires.dict similarity index 100% rename from test/data/unicode1_requires.dict rename to tests/data/unicode1_requires.dict diff --git a/test/data/unicode1_requires.info b/tests/data/unicode1_requires.info similarity index 100% rename from test/data/unicode1_requires.info rename to tests/data/unicode1_requires.info diff --git a/tests/data/unicode1_requires.json b/tests/data/unicode1_requires.json new file mode 100644 index 0000000..c108d1f --- /dev/null +++ b/tests/data/unicode1_requires.json @@ -0,0 +1 @@ +{"schema": {"options": {"properties": {"options.unicode1": {"type": "string", "title": "Value 'test' must show Unicode 2"}, "options.unicode2": {"type": "string", "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": {"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.unicode1": {"clearable": true, "type": "input", "dependencies": {"default": {"hide": ["options.unicode2"]}, "expected": {"test": {"show": ["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/test/data/unicode1_requires.owner b/tests/data/unicode1_requires.owner similarity index 100% rename from test/data/unicode1_requires.owner rename to tests/data/unicode1_requires.owner diff --git a/test/data/unicode1_requires.prop b/tests/data/unicode1_requires.prop similarity index 100% rename from test/data/unicode1_requires.prop rename to tests/data/unicode1_requires.prop diff --git a/test/data/unicode1_requires.prop2 b/tests/data/unicode1_requires.prop2 similarity index 100% rename from test/data/unicode1_requires.prop2 rename to tests/data/unicode1_requires.prop2 diff --git a/test/data/unicode1_simple_callback.dict b/tests/data/unicode1_simple_callback.dict similarity index 100% rename from test/data/unicode1_simple_callback.dict rename to tests/data/unicode1_simple_callback.dict diff --git a/test/data/unicode1_simple_callback.info b/tests/data/unicode1_simple_callback.info similarity index 100% rename from test/data/unicode1_simple_callback.info rename to tests/data/unicode1_simple_callback.info diff --git a/tests/data/unicode1_simple_callback.json b/tests/data/unicode1_simple_callback.json new file mode 100644 index 0000000..e37f6c5 --- /dev/null +++ b/tests/data/unicode1_simple_callback.json @@ -0,0 +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 diff --git a/test/data/unicode1_simple_callback.owner b/tests/data/unicode1_simple_callback.owner similarity index 100% rename from test/data/unicode1_simple_callback.owner rename to tests/data/unicode1_simple_callback.owner diff --git a/test/data/unicode1_simple_callback.prop b/tests/data/unicode1_simple_callback.prop similarity index 100% rename from test/data/unicode1_simple_callback.prop rename to tests/data/unicode1_simple_callback.prop diff --git a/test/data/unicode1_simple_callback.prop2 b/tests/data/unicode1_simple_callback.prop2 similarity index 100% rename from test/data/unicode1_simple_callback.prop2 rename to tests/data/unicode1_simple_callback.prop2 diff --git a/test/data/unicode2.dict b/tests/data/unicode2.dict similarity index 100% rename from test/data/unicode2.dict rename to tests/data/unicode2.dict diff --git a/test/data/unicode2.info b/tests/data/unicode2.info similarity index 100% rename from test/data/unicode2.info rename to tests/data/unicode2.info diff --git a/tests/data/unicode2.json b/tests/data/unicode2.json new file mode 100644 index 0000000..1f0e082 --- /dev/null +++ b/tests/data/unicode2.json @@ -0,0 +1 @@ +{"schema": {"options": {"properties": {"options.unicode1": {"type": "string", "title": "Unicode 1"}, "options.unicode2": {"type": "string", "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "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"}, "options.unicode2": {"clearable": true, "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/unicode2.owner b/tests/data/unicode2.owner similarity index 100% rename from test/data/unicode2.owner rename to tests/data/unicode2.owner diff --git a/test/data/unicode2.prop b/tests/data/unicode2.prop similarity index 100% rename from test/data/unicode2.prop rename to tests/data/unicode2.prop diff --git a/test/data/unicode2.prop2 b/tests/data/unicode2.prop2 similarity index 100% rename from test/data/unicode2.prop2 rename to tests/data/unicode2.prop2 diff --git a/test/data/unicode2_copy.dict b/tests/data/unicode2_copy.dict similarity index 100% rename from test/data/unicode2_copy.dict rename to tests/data/unicode2_copy.dict diff --git a/test/data/unicode2_copy.info b/tests/data/unicode2_copy.info similarity index 100% rename from test/data/unicode2_copy.info rename to tests/data/unicode2_copy.info diff --git a/tests/data/unicode2_copy.json b/tests/data/unicode2_copy.json new file mode 100644 index 0000000..4ecea90 --- /dev/null +++ b/tests/data/unicode2_copy.json @@ -0,0 +1 @@ +{"schema": {"options": {"properties": {"options.unicode1": {"type": "string", "title": "Unicode 1"}, "options.unicode2": {"type": "string", "title": "Unicode 2 (copy)"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "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", "copy": ["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/test/data/unicode2_copy.owner b/tests/data/unicode2_copy.owner similarity index 100% rename from test/data/unicode2_copy.owner rename to tests/data/unicode2_copy.owner diff --git a/test/data/unicode2_copy.prop b/tests/data/unicode2_copy.prop similarity index 100% rename from test/data/unicode2_copy.prop rename to tests/data/unicode2_copy.prop diff --git a/test/data/unicode2_copy.prop2 b/tests/data/unicode2_copy.prop2 similarity index 100% rename from test/data/unicode2_copy.prop2 rename to tests/data/unicode2_copy.prop2 diff --git a/test/data/unicode2_multi_copy.dict b/tests/data/unicode2_multi_copy.dict similarity index 100% rename from test/data/unicode2_multi_copy.dict rename to tests/data/unicode2_multi_copy.dict diff --git a/test/data/unicode2_multi_copy.info b/tests/data/unicode2_multi_copy.info similarity index 100% rename from test/data/unicode2_multi_copy.info rename to tests/data/unicode2_multi_copy.info diff --git a/tests/data/unicode2_multi_copy.json b/tests/data/unicode2_multi_copy.json new file mode 100644 index 0000000..f3dccae --- /dev/null +++ b/tests/data/unicode2_multi_copy.json @@ -0,0 +1 @@ +{"schema": {"options": {"properties": {"options.unicode1": {"type": "string", "isMulti": true, "title": "Unicode 1"}, "options.unicode2": {"type": "string", "isMulti": true, "title": "Unicode 2"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode1": {"required": true}, "options.unicode2": {"required": true}}, "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", "copy": ["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/test/data/unicode2_multi_copy.owner b/tests/data/unicode2_multi_copy.owner similarity index 100% rename from test/data/unicode2_multi_copy.owner rename to tests/data/unicode2_multi_copy.owner diff --git a/test/data/unicode2_multi_copy.prop b/tests/data/unicode2_multi_copy.prop similarity index 100% rename from test/data/unicode2_multi_copy.prop rename to tests/data/unicode2_multi_copy.prop diff --git a/test/data/unicode2_multi_copy.prop2 b/tests/data/unicode2_multi_copy.prop2 similarity index 100% rename from test/data/unicode2_multi_copy.prop2 rename to tests/data/unicode2_multi_copy.prop2 diff --git a/test/data/unicode2_symlink.dict b/tests/data/unicode2_symlink.dict similarity index 100% rename from test/data/unicode2_symlink.dict rename to tests/data/unicode2_symlink.dict diff --git a/test/data/unicode2_symlink.dict1 b/tests/data/unicode2_symlink.dict1 similarity index 100% rename from test/data/unicode2_symlink.dict1 rename to tests/data/unicode2_symlink.dict1 diff --git a/test/data/unicode2_symlink.info b/tests/data/unicode2_symlink.info similarity index 100% rename from test/data/unicode2_symlink.info rename to tests/data/unicode2_symlink.info diff --git a/tests/data/unicode2_symlink.json b/tests/data/unicode2_symlink.json new file mode 100644 index 0000000..4a493bf --- /dev/null +++ b/tests/data/unicode2_symlink.json @@ -0,0 +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 diff --git a/test/data/unicode2_symlink.mod1 b/tests/data/unicode2_symlink.mod1 similarity index 100% rename from test/data/unicode2_symlink.mod1 rename to tests/data/unicode2_symlink.mod1 diff --git a/test/data/unicode2_symlink.owner b/tests/data/unicode2_symlink.owner similarity index 100% rename from test/data/unicode2_symlink.owner rename to tests/data/unicode2_symlink.owner diff --git a/test/data/unicode2_symlink.prop b/tests/data/unicode2_symlink.prop similarity index 100% rename from test/data/unicode2_symlink.prop rename to tests/data/unicode2_symlink.prop diff --git a/test/data/unicode2_symlink.prop2 b/tests/data/unicode2_symlink.prop2 similarity index 100% rename from test/data/unicode2_symlink.prop2 rename to tests/data/unicode2_symlink.prop2 diff --git a/test/data/unicode2_symlink.updates1 b/tests/data/unicode2_symlink.updates1 similarity index 100% rename from test/data/unicode2_symlink.updates1 rename to tests/data/unicode2_symlink.updates1 diff --git a/test/data/unicode_hidden.dict b/tests/data/unicode_hidden.dict similarity index 100% rename from test/data/unicode_hidden.dict rename to tests/data/unicode_hidden.dict diff --git a/test/data/unicode_hidden.info b/tests/data/unicode_hidden.info similarity index 100% rename from test/data/unicode_hidden.info rename to tests/data/unicode_hidden.info diff --git a/tests/data/unicode_hidden.json b/tests/data/unicode_hidden.json new file mode 100644 index 0000000..4f635ac --- /dev/null +++ b/tests/data/unicode_hidden.json @@ -0,0 +1 @@ +{"schema": {"options": {"properties": {"options.unicode": {"type": "string", "title": "Unicode 1"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode": {"display": false, "hidden": true}}, "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/test/data/unicode_hidden.owner b/tests/data/unicode_hidden.owner similarity index 100% rename from test/data/unicode_hidden.owner rename to tests/data/unicode_hidden.owner diff --git a/test/data/unicode_hidden.prop b/tests/data/unicode_hidden.prop similarity index 100% rename from test/data/unicode_hidden.prop rename to tests/data/unicode_hidden.prop diff --git a/test/data/unicode_hidden.prop2 b/tests/data/unicode_hidden.prop2 similarity index 100% rename from test/data/unicode_hidden.prop2 rename to tests/data/unicode_hidden.prop2 diff --git a/test/data/unicode_property.dict b/tests/data/unicode_property.dict similarity index 100% rename from test/data/unicode_property.dict rename to tests/data/unicode_property.dict diff --git a/test/data/unicode_property.info b/tests/data/unicode_property.info similarity index 100% rename from test/data/unicode_property.info rename to tests/data/unicode_property.info diff --git a/tests/data/unicode_property.json b/tests/data/unicode_property.json new file mode 100644 index 0000000..ebfb3b7 --- /dev/null +++ b/tests/data/unicode_property.json @@ -0,0 +1 @@ +{"schema": {"options": {"properties": {"options.unicode": {"type": "string", "title": "Expert unicode"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.unicode": {"properties": ["expert"]}}, "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/test/data/unicode_property.owner b/tests/data/unicode_property.owner similarity index 100% rename from test/data/unicode_property.owner rename to tests/data/unicode_property.owner diff --git a/test/data/unicode_property.prop b/tests/data/unicode_property.prop similarity index 100% rename from test/data/unicode_property.prop rename to tests/data/unicode_property.prop diff --git a/test/data/unicode_property.prop2 b/tests/data/unicode_property.prop2 similarity index 100% rename from test/data/unicode_property.prop2 rename to tests/data/unicode_property.prop2 diff --git a/test/data/unicode_property_optiondescription.dict b/tests/data/unicode_property_optiondescription.dict similarity index 100% rename from test/data/unicode_property_optiondescription.dict rename to tests/data/unicode_property_optiondescription.dict diff --git a/test/data/unicode_property_optiondescription.info b/tests/data/unicode_property_optiondescription.info similarity index 100% rename from test/data/unicode_property_optiondescription.info rename to tests/data/unicode_property_optiondescription.info diff --git a/tests/data/unicode_property_optiondescription.json b/tests/data/unicode_property_optiondescription.json new file mode 100644 index 0000000..0b19cb5 --- /dev/null +++ b/tests/data/unicode_property_optiondescription.json @@ -0,0 +1 @@ +{"schema": {"options": {"properties": {"options.unicode": {"type": "string", "title": "Expert unicode"}}, "type": "object", "title": "Common configuration"}}, "model": {"options": {"properties": ["expert"]}}, "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/test/data/unicode_property_optiondescription.owner b/tests/data/unicode_property_optiondescription.owner similarity index 100% rename from test/data/unicode_property_optiondescription.owner rename to tests/data/unicode_property_optiondescription.owner diff --git a/test/data/unicode_property_optiondescription.prop b/tests/data/unicode_property_optiondescription.prop similarity index 100% rename from test/data/unicode_property_optiondescription.prop rename to tests/data/unicode_property_optiondescription.prop diff --git a/test/data/unicode_property_optiondescription.prop2 b/tests/data/unicode_property_optiondescription.prop2 similarity index 100% rename from test/data/unicode_property_optiondescription.prop2 rename to tests/data/unicode_property_optiondescription.prop2 diff --git a/test/data/username1.dict b/tests/data/username1.dict similarity index 100% rename from test/data/username1.dict rename to tests/data/username1.dict diff --git a/test/data/username1.info b/tests/data/username1.info similarity index 100% rename from test/data/username1.info rename to tests/data/username1.info diff --git a/tests/data/username1.json b/tests/data/username1.json new file mode 100644 index 0000000..d532c61 --- /dev/null +++ b/tests/data/username1.json @@ -0,0 +1 @@ +{"schema": {"options": {"properties": {"options.username": {"type": "username", "title": "Username description"}}, "type": "object", "title": "Common configuration"}}, "model": {}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"options.username": {"clearable": true, "pattern": "^[a-z_][a-z0-9_-]{0,30}[$a-z0-9_-]{0,1}$", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/username1.owner b/tests/data/username1.owner similarity index 100% rename from test/data/username1.owner rename to tests/data/username1.owner diff --git a/test/data/username1.prop b/tests/data/username1.prop similarity index 100% rename from test/data/username1.prop rename to tests/data/username1.prop diff --git a/test/data/username1.prop2 b/tests/data/username1.prop2 similarity index 100% rename from test/data/username1.prop2 rename to tests/data/username1.prop2 diff --git a/test/data/username1_frozen.dict b/tests/data/username1_frozen.dict similarity index 100% rename from test/data/username1_frozen.dict rename to tests/data/username1_frozen.dict diff --git a/test/data/username1_frozen.info b/tests/data/username1_frozen.info similarity index 100% rename from test/data/username1_frozen.info rename to tests/data/username1_frozen.info diff --git a/tests/data/username1_frozen.json b/tests/data/username1_frozen.json new file mode 100644 index 0000000..d0b4a66 --- /dev/null +++ b/tests/data/username1_frozen.json @@ -0,0 +1 @@ +{"schema": {"options": {"properties": {"options.username": {"type": "username", "title": "Username description frozen"}}, "type": "object", "title": "Common configuration"}}, "model": {"options.username": {"readOnly": true}}, "global": {"owner": "user", "properties": ["cache", "demoting_error_warning", "disabled", "force_store_value", "frozen", "hidden", "validator", "warnings"], "permissives": ["hidden"]}, "form": {"options.username": {"clearable": true, "pattern": "^[a-z_][a-z0-9_-]{0,30}[$a-z0-9_-]{0,1}$", "type": "input"}, "null": [{"title": "Configurer", "type": "submit"}]}, "version": "1.0"} \ No newline at end of file diff --git a/test/data/username1_frozen.owner b/tests/data/username1_frozen.owner similarity index 100% rename from test/data/username1_frozen.owner rename to tests/data/username1_frozen.owner diff --git a/test/data/username1_frozen.prop b/tests/data/username1_frozen.prop similarity index 100% rename from test/data/username1_frozen.prop rename to tests/data/username1_frozen.prop diff --git a/test/data/username1_frozen.prop2 b/tests/data/username1_frozen.prop2 similarity index 100% rename from test/data/username1_frozen.prop2 rename to tests/data/username1_frozen.prop2 diff --git a/tests/test_json.py b/tests/test_json.py new file mode 100644 index 0000000..0362abf --- /dev/null +++ b/tests/test_json.py @@ -0,0 +1,295 @@ +# -*- coding: utf-8 -*- +from json import loads +from os import listdir +from os.path import dirname, abspath, join, normpath, splitext +import pytest +# import warnings + +# from tiramisu.error import ValueWarning +from tiramisu_json_api import Config +from tiramisu_json_api.error import PropertiesOptionError +from tiramisu_json_api.setting import undefined + + +# warnings.simplefilter("always", ValueWarning) + + +def list_data(ext='.json'): + datadir = join(normpath(dirname(abspath(__file__))), 'data') + filenames = listdir(datadir) + filenames.sort() + ret = [] + for filename in filenames: + if filename.endswith(ext) and not filename.startswith('__'): + ret.append(join(datadir, filename)) + return ret + + +LISTDATA = list_data() + + +LISTDATA_MOD = [] +idx = 0 +while True: + idx += 1 + list_files = list_data('.mod{}'.format(idx)) + if not list_files: + break + LISTDATA_MOD.extend(list_files) + + +@pytest.fixture(params=LISTDATA) +def filename(request): + return request.param + + + +@pytest.fixture(params=LISTDATA_MOD) +def filename_mod(request): + return request.param + + +def error_to_str(dico): + for key, value in dico.items(): + if isinstance(value, list): + for idx, val in enumerate(value): + if (isinstance(val, str) and (val.startswith('cannot access to') or val.startswith('ne peut accéder'))) or isinstance(val, PropertiesOptionError): + dico[key][idx] = "PropertiesOptionError" + return dico + + +# config.option().value.dict() +def test_dict(filename): + debug = False + # debug = True + if debug: + print('test_jsons', filename) + with open(filename, 'r') as fh: + json = loads(fh.read()) + # + config = Config(json) + with open(filename[:-4] + 'dict', 'r') as fh: + dico = loads(fh.read()) + + if debug: + from pprint import pprint + pprint(dico) + print('-----') + pprint(config.value.dict()) + assert error_to_str(dico) == error_to_str(config.value.dict()) + + +# config.option().value.get() +def test_get(filename): + debug = False + # debug = True + if debug: + print(filename) + with open(filename, 'r') as fh: + json = loads(fh.read()) + config = Config(json) + with open(filename[:-4] + 'dict', 'r') as fh: + dico = error_to_str(loads(fh.read())) + for key, value in dico.items(): + if config.option(key).option.isleader(): + leader_len = len(value) + if config.option(key).option.isfollower(): + values = [] + for index in range(leader_len): + if debug: + print(' ', key, index, value) + try: + val = config.option(key, index).value.get() + except PropertiesOptionError: + val = "PropertiesOptionError" + values.append(val) + assert value == values + else: + assert value == config.option(key).value.get() + + +# config.option().owner.get() +def test_owner(filename): + debug = False + # debug = True + if debug: + print(filename) + with open(filename, 'r') as fh: + json = loads(fh.read()) + config = Config(json) + with open(filename[:-4] + 'owner', 'r') as fh: + dico = loads(fh.read()) + for key, value in dico.items(): + if debug: + print('key', key) + if config.option(key).option.isleader(): + leader_len = len(config.option(key).value.get()) + if config.option(key).option.isfollower(): + values = {} + for index in range(leader_len): + try: + values[str(index)] = config.option(key, index).owner.get() + except PropertiesOptionError: + pass + if debug: + print(value) + print('------------------') + print(values) + assert value == values + else: + if debug: + print(value) + print('------------------') + print({'null': config.option(key).owner.get()}) + assert value == {'null': config.option(key).owner.get()} + + +# config.option().property.get() +def test_prop(filename): + debug = False + # debug = True + if debug: + print(filename) + with open(filename, 'r') as fh: + json = loads(fh.read()) + config = Config(json) + with open(filename[:-4] + 'prop', 'r') as fh: + dico = loads(fh.read()) + for key, value in dico.items(): + if debug: + print('key', key) + for key_, val in value.items(): + value[key_] = set(val) + if config.option(key).option.isleader(): + leader_len = len(config.option(key).value.get()) + if config.option(key).option.isfollower(): + props = {} + for index in range(leader_len): + try: + props[str(index)] = set(config.option(key, index).property.get()) + except PropertiesOptionError: + pass + if 'clearable' in props[str(index)]: + props[str(index)].remove('clearable') + else: + props = {'null': set(config.option(key).property.get())} + if 'clearable' in props['null']: + props['null'].remove('clearable') + assert value == props + + +# config.option().property.get(True) +def test_prop2(filename): + debug = False + # debug = True + if debug: + print(filename) + with open(filename, 'r') as fh: + json = loads(fh.read()) + config = Config(json) + with open(filename[:-4] + 'prop2', 'r') as fh: + dico = loads(fh.read()) + for key, value in dico.items(): + if debug: + print('key', key) + for key_, val in value.items(): + value[key_] = set(val) + if config.option(key).option.isleader(): + leader_len = len(config.option(key).value.get()) + if config.option(key).option.isfollower(): + props = {} + for index in range(leader_len): + try: + props[str(index)] = set(config.option(key, index).property.get(True)) + except PropertiesOptionError: + pass + if 'clearable' in props[str(index)]: + props[str(index)].remove('clearable') + else: + props = {'null': set(config.option(key).property.get(True))} + if 'clearable' in props['null']: + props['null'].remove('clearable') + assert value == props + + +def test_info(filename): + debug = False + # debug = True + with open(filename, 'r') as fh: + json = loads(fh.read()) + config = Config(json) + with open(filename[:-4] + 'info', 'r') as fh: + dico = loads(fh.read()) + if debug: + from pprint import pprint + pprint(json) + print('-------------------') + pprint(dico) + + for key, values in dico.items(): + for info, value in values.items(): + assert getattr(config.option(key).option, info)() == value, 'error for {} info {} in {}'.format(key, info, filename) + + +def test_mod(filename_mod): + debug = False + # debug = True + i = int(filename_mod[-1]) + if debug: + print('test_mod', filename_mod) + with open(filename_mod[:-4] + 'json', 'r') as fh: + json = loads(fh.read()) + # + if debug: + from pprint import pprint + pprint(json) + config = Config(json) + with open(filename_mod) as fh: + mod = loads(fh.read()) + if debug: + print(mod['cmd']) + if isinstance(mod['cmd'], list): + for cmd in mod['cmd']: + eval(cmd) + else: + eval(mod['cmd']) + # + if debug: + from pprint import pprint + pprint(config.updates) + print('----------------') + pprint(mod['body']['updates']) + assert config.updates == mod['body']['updates'] + + with open(filename_mod[:-4] + 'dict{}'.format(i), 'r') as fh: + dico1 = loads(fh.read()) + if debug: + from pprint import pprint + pprint(dico1) + print('----------------') + pprint(config.value.dict()) + assert dico1 == config.value.dict() + + +def test_mod2(filename_mod): + debug = False + # debug = True + i = int(filename_mod[-1]) + if debug: + print('test_mod', filename_mod) + with open(filename_mod[:-4] + 'json', 'r') as fh: + json = loads(fh.read()) + # + config = Config(json) + # + with open(filename_mod[:-4] + 'updates{}'.format(i), 'r') as fh: + data = loads(fh.read()) + config.updates_data(data) + with open(filename_mod[:-4] + 'dict{}'.format(i), 'r') as fh: + dico1 = loads(fh.read()) + if debug: + from pprint import pprint + pprint(dico1) + print('----------------') + pprint(config.value.dict()) + assert dico1 == config.value.dict() diff --git a/test/test_list.py b/tests/test_list.py similarity index 91% rename from test/test_list.py rename to tests/test_list.py index 817b6e7..32bedf5 100644 --- a/test/test_list.py +++ b/tests/test_list.py @@ -3,7 +3,7 @@ from tiramisu_json_api import Config def test_list_option(): - filename = 'test/data/boolean1.json' + filename = 'tests/data/boolean1.json' with open(filename, 'r') as fh: json = loads(fh.read()) # @@ -20,7 +20,7 @@ def test_list_option(): def test_list_optiondescription(): - filename = 'test/data/boolean1.json' + filename = 'tests/data/boolean1.json' with open(filename, 'r') as fh: json = loads(fh.read()) # @@ -37,7 +37,7 @@ def test_list_optiondescription(): def test_list_all(): - filename = 'test/data/boolean1.json' + filename = 'tests/data/boolean1.json' with open(filename, 'r') as fh: json = loads(fh.read()) # diff --git a/tiramisu_json_api/api.py b/tiramisu_json_api/api.py index 636dff9..a2f13b8 100644 --- a/tiramisu_json_api/api.py +++ b/tiramisu_json_api/api.py @@ -4,27 +4,39 @@ import warnings import re -from .error import APIError, ValueWarning, ValueOptionError, ValueErrorWarning, PropertiesOptionError +from .error import APIError, ConfigError, ValueWarning, ValueOptionError, ValueErrorWarning, PropertiesOptionError, display_list from .setting import undefined from .i18n import _ TIRAMISU_JSON_VERSION = '1.0' +DEBUG = False TYPE = {'boolean': bool, 'integer': int, 'string': str, 'password': str, - 'domain': str} + 'filename': str, + 'email': str, + 'url': str, + 'ip': str, + 'network': str, + 'netmask': str, + 'broadcast_address': str, + 'port': str, + 'domainname': str, + 'date': str} class Option: # fake Option (IntOption, StrOption, ...) # only usefull for warnings def __init__(self, - path): + path, + display_name): self.path = path + self.display_name = display_name def __call__(self): # suppose to be a weakref @@ -33,6 +45,9 @@ class Option: def impl_getpath(self): return self.path + def impl_get_display_name(self): + return self.display_name + class TiramisuOptionOption: # config.option(path).option @@ -40,16 +55,18 @@ class TiramisuOptionOption: config: 'Config', path: str, schema: Dict, - model: Dict, form: Dict) -> None: self.config = config self._path = path self.schema = schema - self.model = model self.form = form def doc(self): - return self.schema['title'] + if self.issymlinkoption(): + schema = self.config.get_schema(self.schema['opt_path']) + else: + schema = self.schema + return schema['title'] def path(self): return self._path @@ -95,14 +112,14 @@ class TiramisuOptionOption: return self.schema['type'] def properties(self) -> List[str]: - model = self.model.get(self._path, {}) + model = self.config.model.get(self._path, {}) if self.isfollower(): model = model.get(None, {}) return self.config.get_properties(model, self._path, None) - - def requires(self) -> None: - # FIXME - return None +# +# def requires(self) -> None: +# # FIXME +# return None def pattern(self): if self._path in self.form: @@ -110,26 +127,29 @@ class TiramisuOptionOption: else: return None + def defaultmulti(self): + if not self.schema.get('isMulti'): + raise Exception('defaultmulti avalaible only for a multi') + return self.schema.get('defaultmulti') + class TiramisuOptionProperty: # config.option(path).property def __init__(self, config: 'Config', path: str, - index: Optional[int], - model: Dict) -> None: + index: Optional[int]) -> None: self.config = config self.path = path self.index = index - self.model = model def get(self, only_raises=False): if not only_raises: - props = self.config.get_properties(self.model, self.path, self.index, only_raises) + props = self.config.get_properties(self.config.model.get(self.path, {}), self.path, self.index, only_raises) else: props = [] if self.config.is_hidden(self.path, - self.index): + self.index): props.append('hidden') return props @@ -140,30 +160,40 @@ class _Value: schema: Dict, root: str, fullpath: bool, - withwarning: bool) -> None: + withwarning: bool, + flatten: bool, + len_parent: Optional[int]) -> None: leadership_len = None for key, option in schema['properties'].items(): if self.config.is_hidden(key, None) is False: + if flatten: + nkey = key.split('.')[-1] + elif len_parent is not None: + nkey = key[len_parent:] + else: + nkey = key if option['type'] in ['object', 'array']: # optiondescription or leadership self._dict_walk(ret, option, root, fullpath, - withwarning) + withwarning, + flatten, + len_parent) elif schema.get('type') == 'array' and leadership_len is not None: # followers values = [] for index in range(leadership_len): value = self.config.get_value(key, index) - self._display_warnings(key, value, option['type'], key, withwarning) + self.config._check_raises_warnings(key, index, value, option['type'], withwarning) values.append(value) - ret[key] = values + ret[nkey] = values else: value = self.config.get_value(key) - self._display_warnings(key, value, option['type'], key, withwarning) - ret[key] = value + self.config._check_raises_warnings(key, None, value, option['type'], withwarning) + ret[nkey] = value if schema.get('type') == 'array': leadership_len = len(value) elif schema.get('type') == 'array' and leadership_len is None: @@ -172,47 +202,30 @@ class _Value: def dict(self, fullpath: bool=False, - withwarning: bool=False): + withwarning: bool=False, + flatten: bool=False): ret = {} self._dict_walk(ret, self.schema, self.path, fullpath, - withwarning) + withwarning, + flatten, + None) return ret - def _display_warnings(self, path, value, type, name, withwarning=True): - for err in self.model.get(path, {}).get('error', []): - warnings.warn_explicit(ValueErrorWarning(value, - type, - Option(path), - '{0}'.format(err)), - ValueErrorWarning, - self.__class__.__name__, 0) - - if withwarning and self.model.get(path, {}).get('warnings'): - for warn in self.model.get(path, {}).get('warnings'): - warnings.warn_explicit(ValueErrorWarning(value, - type, - Option(path), - '{0}'.format(err)), - ValueErrorWarning, - self.__class__.__name__, 0) - class TiramisuOptionOwner: # config.option(path).owner def __init__(self, config: 'Config', schema: Dict, - model: List[Dict], form: List[Dict], temp: List[Dict], path: str, index: int) -> None: self.config = config self.schema = schema - self.model = model self.form = form self.temp = temp self.path = path @@ -225,35 +238,67 @@ class TiramisuOptionOwner: return self.config.get_owner(self.path, self.index) -class TiramisuOptionValue(_Value): - # config.option(path).value +class TiramisuOptionDescriptionValue(_Value): + # config.option(descr_path).value + def __init__(self, + config: 'Config', + schema: Dict, + form: List[Dict], + temp: List[Dict], + path: str, + index: int) -> None: + self.config = config + self.schema = schema + self.form = form + self.temp = temp + self.path = path + self.index = index + + def dict(self, + fullpath: bool=False, + withwarning: bool=False, + flatten: bool=False): + ret = {} + len_parent = len(self.path) + 1 + self._dict_walk(ret, + self.schema, + self.path, + fullpath, + withwarning, + flatten, + len_parent) + return ret + + +class TiramisuOptionValue(_Value): + # config.option(path).value def __init__(self, config: 'Config', schema: Dict, - model: List[Dict], form: List[Dict], temp: List[Dict], path: str, index: int) -> None: self.config = config self.schema = schema - self.model = model self.form = form self.temp = temp self.path = path self.index = index def get(self) -> Any: - if self.config.isfollower(self.path): + if self.schema['type'] == 'symlink': + # FIXME should tested it too + pass + elif self.config.isfollower(self.path): if self.index is None: raise APIError(_('index must be set with the follower option "{}"').format(self.path)) - value = self.config.get_value(self.path, self.index) - self._display_warnings(self.path, value, self.schema['type'], self.path) - return value - if self.index is not None: + elif self.index is not None: raise APIError(_('index must only be set with a follower option, not for "{}"').format(self.path)) - value = self.config.get_value(self.path) - self._display_warnings(self.path, value, self.schema['type'], self.path) + if self.config.is_hidden(self.path, self.index): + raise PropertiesOptionError(None, {'disabled'}, None, opt_type='option') + value = self.config.get_value(self.path, self.index) + self.config._check_raises_warnings(self.path, self.index, value, self.schema['type']) return value def list(self): @@ -262,8 +307,10 @@ class TiramisuOptionValue(_Value): def _validate(self, type_, value): if value in [None, undefined]: return + if type_ == 'symlink': + raise ConfigError(_("can't assign to a SymLinkOption")) if type_ == 'choice': - if value not in self.schema['enum']: + if 'enum' in self.schema and value not in self.schema['enum']: raise ValueError('value {} is not in {}'.format(value, self.schema['enum'])) elif not isinstance(value, TYPE[type_]): raise ValueError('value {} is not a valid {} '.format(value, type_)) @@ -271,12 +318,14 @@ class TiramisuOptionValue(_Value): def set(self, value): type_ = self.schema['type'] leader_old_value = undefined + if self.config.is_hidden(self.path, self.index): + raise PropertiesOptionError(None, {'disabled'}, None, opt_type='option') if self.config.isleader(self.path): leader_old_value = self.config.get_value(self.path) remote = self.form.get(self.path, {}).get('remote', False) if self.index is None and self.schema.get('isMulti', False): if not isinstance(value, list): - raise Exception('value must be a list') + raise ValueError('value must be a list') for val in value: if self.schema.get('isSubMulti', False): for v in val: @@ -294,19 +343,32 @@ class TiramisuOptionValue(_Value): value, remote, leader_old_value) - self._display_warnings(self.path, value, type_, self.path) + self.config._check_raises_warnings(self.path, self.index, value, type_) def reset(self): self.config.delete_value(self.path, self.index) def default(self): - return self.schema.get('value') + if self.schema.get('isMulti'): + if self.config.isfollower(self.path): + if self.index is not None: + value = self.schema['defaultmulti'] + else: + leader = next(iter(self.config.option(self.path.rsplit('.', 1)[0]).schema['properties'])) + len_value = len(self.config.get_value(leader)) + value = [self.schema['defaultmulti']] * len_value + else: + value = self.schema.get('value', []) + else: + value = self.schema.get('value') + return value class _Option: def list(self, - type='option'): + type='option', + recursive=False): if type not in ['all', 'option', 'optiondescription']: raise Exception('unknown list type {}'.format(type)) for path, schema in self.schema['properties'].items(): @@ -315,14 +377,18 @@ class _Option: if type in ['all', 'optiondescription']: yield TiramisuOptionDescription(self.config, schema, - self.model, self.form, self.temp, path) + if recursive: + yield from TiramisuOptionDescription(self.config, + schema, + self.form, + self.temp, + path).list(type, recursive) elif type in ['all', 'option']: yield TiramisuOption(self.config, schema, - self.model, self.form, self.temp, path, @@ -334,13 +400,11 @@ class TiramisuOptionDescription(_Option): def __init__(self, config: 'Config', schema: Dict, - model: List[Dict], form: List[Dict], temp: List[Dict], path: str) -> None: self.config = config self.schema = schema - self.model = model self.form = form self.temp = temp self.path = path @@ -352,51 +416,34 @@ class TiramisuOptionDescription(_Option): return TiramisuOptionOption(self.config, self.path, self.schema, - self.model, self.form) if subfunc == 'property': return TiramisuOptionProperty(self.config, self.path, - self.model.get(self.path, {})) - if subfunc == 'value' and self.schema['type'] == 'array': - return TiramisuLeadershipValue(self.config, - self.schema, - self.model, - self.form, - self.temp, - self.path, - self.index) + None) + if subfunc == 'value': + return TiramisuOptionDescriptionValue(self.config, + self.schema, + self.form, + self.temp, + self.path, + self.index) raise APIError(_('please specify a valid sub function ({})').format(subfunc)) def group_type(self): - if self.config.is_hidden(self.path, None): + if not self.config.is_hidden(self.path, None): # FIXME return 'default' - raise PropertiesOptionError(None, None, None, opt_type='optiondescription') + raise PropertiesOptionError(None, {'disabled'}, None, opt_type='optiondescription') -class TiramisuLeadershipValue: - def __init__(self, - config, - schema, - model, - form, - temp, - path): - self.config = config - self.schema = schema - self.model = model - self.form = form - self.temp = temp - self.path = path - +class TiramisuLeadershipValue(TiramisuOptionValue): def len(self): - return len(self.config.get_value(self.schema['properties'][0])) + return len(self.config.get_value(self.path)) def pop(self, index: int) -> None: - leadership_path = self.schema['properties'][0] - self.config.delete_value(leadership_path, index) + self.config.delete_value(self.path, index) class TiramisuOption: @@ -404,14 +451,12 @@ class TiramisuOption: def __init__(self, config: 'Config', schema: Dict, - model: List[Dict], form: List[Dict], temp: List[Dict], path: str, index: Optional[int]) -> None: self.config = config self.schema = schema - self.model = model self.form = form self.temp = temp self.path = path @@ -425,20 +470,21 @@ class TiramisuOption: return TiramisuOptionOption(self.config, self.path, self.schema, - self.model, self.form) if subfunc == 'value': - return TiramisuOptionValue(self.config, - self.schema, - self.model, - self.form, - self.temp, - self.path, - self.index) + if self.config.isleader(self.path): + obj = TiramisuLeadershipValue + else: + obj = TiramisuOptionValue + return obj(self.config, + self.schema, + self.form, + self.temp, + self.path, + self.index) if subfunc == 'owner': return TiramisuOptionOwner(self.config, self.schema, - self.model, self.form, self.temp, self.path, @@ -446,32 +492,28 @@ class TiramisuOption: if subfunc == 'property': return TiramisuOptionProperty(self.config, self.path, - self.index, - self.model.get(self.path, {})) + self.index) raise APIError(_('please specify a valid sub function ({})').format(subfunc)) class TiramisuContextProperty: # config.property - # def __init__(self, - # json): - # self.json = json + def __init__(self, + config): + self.config = config def get(self): - # FIXME ? - return ['demoting_error_warning'] + return self.config.global_model.get('properties') class ContextOption(_Option): # config.option def __init__(self, config: 'Config', - model: Dict, form: Dict, schema: Dict, temp: Dict) -> None: self.config = config - self.model = model self.form = form self.schema = {'properties': schema} self.temp = temp @@ -484,29 +526,42 @@ class ContextOption(_Option): if schema['type'] in ['object', 'array']: return TiramisuOptionDescription(self.config, schema, - self.model, self.form, self.temp, path) return TiramisuOption(self.config, schema, - self.model, self.form, self.temp, path, index) -class ContextValue(_Value): - # config.value +class ContextOwner: + # config.owner + def __init__(self, + config: 'Config', + form: Dict, + schema: Dict, + temp: Dict) -> None: + self.config = config + self.form = form + self.schema = {'properties': schema} + self.temp = temp + self.index = None + + def get(self): + return self.config.global_model.get('owner', 'tmp') + + +class ContextValue(_Value): + # config.value def __init__(self, config: 'Config', - model: Dict, form: Dict, schema: Dict, temp: Dict) -> None: self.config = config - self.model = model self.form = form first = next(iter(schema.keys())) self.path = first.rsplit('.', 1)[0] @@ -516,7 +571,6 @@ class ContextValue(_Value): def __call__(self) -> TiramisuOptionValue: return TiramisuOptionValue(self.config, self.schema, - self.model, self.form, self.temp, path, @@ -525,7 +579,7 @@ class ContextValue(_Value): def mandatory(self): for key, value in self.dict().items(): if self.config.isfollower(key): - if self.model.get(key, {}).get(None, {}).get('required'): + if self.config.model.get(key, {}).get(None, {}).get('required'): # FIXME test with index if self.config.get_schema(key).get('isSubMulti'): for val in value: @@ -535,11 +589,11 @@ class ContextValue(_Value): elif None in value or '' in value: yield key elif self.config.get_schema(key).get('isMulti'): - if self.model.get(key, {}).get('required') and (None in value or '' in value): + if self.config.model.get(key, {}).get('required') and (None in value or '' in value): yield key - if self.model.get(key, {}).get('needs_len') and not value: + if self.config.model.get(key, {}).get('needs_len') and not value: yield key - elif self.model.get(key, {}).get('required') and value is None: + elif self.config.model.get(key, {}).get('required') and value is None: yield key @@ -547,18 +601,26 @@ class Config: # config def __init__(self, json): + if DEBUG: + from pprint import pprint + pprint(json) if json.get('version') != TIRAMISU_JSON_VERSION: raise Exception('incompatible tiramisu-json format version (got {}, expected {})'.format(json.get('version', '0.0'), TIRAMISU_JSON_VERSION)) - self.model = json['model'] - self.form = json['form'] + self.model = json.get('model') + self.global_model = json.get('global') + self.form = json.get('form') # support pattern - for key, option in self.form.items(): - if key != 'null' and 'pattern' in option: - option['pattern'] = re.compile(option['pattern']) + if self.form: + for key, option in self.form.items(): + if key != 'null' and 'pattern' in option: + option['pattern'] = re.compile(option['pattern']) self.temp = {} - self.schema = json['schema'] + self.schema = json.get('schema') self.updates = [] - first_path = next(iter(self.schema.keys())) + if self.schema: + first_path = next(iter(self.schema.keys())) + else: + first_path = '' if '.' in first_path: self.root = first_path.rsplit('.', 1)[0] else: @@ -567,16 +629,19 @@ class Config: def __getattr__(self, subfunc: str) -> Any: if subfunc == 'property': - return TiramisuContextProperty() + return TiramisuContextProperty(self) if subfunc == 'option': return ContextOption(self, - self.model, self.form, self.schema, self.temp) if subfunc == 'value': return ContextValue(self, - self.model, + self.form, + self.schema, + self.temp) + if subfunc == 'owner': + return ContextOwner(self, self.form, self.schema, self.temp) @@ -587,15 +652,21 @@ class Config: index: Optional[int], value: Any, remote: bool) -> None: - self.manage_updates('add', - path, - index, - value) + if remote: + self.manage_updates('add', + path, + index, + value) self.updates_value('add', path, index, value, remote) + if not remote: + self.manage_updates('add', + path, + index, + value) def modify_value(self, path: str, @@ -603,41 +674,70 @@ class Config: value: Any, remote: bool, leader_old_value: Any) -> None: + if not remote: + self.updates_value('modify', + path, + index, + value, + remote, + False, + leader_old_value) schema = self.get_schema(path) - if value and isinstance(value, list) and value[-1] is undefined: - new_value = schema.get('defaultvalue') - if new_value is None: - len_value = len(value) - schema_value = schema.get('value', []) - if len(schema_value) >= len_value: - new_value = schema_value[len_value - 1] - value[-1] = new_value - - self.manage_updates('modify', - path, - index, - value) - self.updates_value('modify', - path, - index, - value, - remote, - False, - leader_old_value) + if value and isinstance(value, list) and undefined in value: + new_value = schema.get('defaultmulti') + if remote: + for idx, val in enumerate(value): + self.manage_updates('modify', + path, + idx, + val) + else: + while undefined in value: + undefined_index = value.index(undefined) + schema_value = schema.get('value', []) + if len(schema_value) > undefined_index: + value[undefined_index] = schema_value[undefined_index] + else: + value[undefined_index] = new_value + self.manage_updates('modify', + path, + index, + value) + else: + self.manage_updates('modify', + path, + index, + value) + if remote: + self.updates_value('modify', + path, + index, + value, + remote, + False, + leader_old_value) def delete_value(self, path: str, index: Optional[int]) -> None: + if self.get_schema(path)['type'] == 'symlink': + raise ConfigError(_("can't delete a SymLinkOption")) remote = self.form.get(path, {}).get('remote', False) - self.manage_updates('delete', - path, - index, - None) + if remote: + self.manage_updates('delete', + path, + index, + None) self.updates_value('delete', path, index, None, remote) + if not remote: + self.manage_updates('delete', + path, + index, + None) def get_properties(self, model, @@ -703,23 +803,44 @@ class Config: def is_hidden(self, path: str, - index: Optional[int]) -> bool: - for property_, needs in {'hidden': True, 'display': False}.items(): - if index is not None and property_ in self.temp.get(path, {}).get(str(index), {}): - return self.temp[path][str(index)][property_] - if property_ in self.temp.get(path, {}): - return self.temp[path][property_] - elif self.isfollower(path): - if self.model.get(path, {}).get('null', {}).get(property_, None) == needs: - return True - elif self.model.get(path, {}).get(property_, None) == needs: + index: Optional[int], + permissive: bool=False) -> bool: + if permissive: + property_ = 'hidden' + needs = True + if property_ in self.global_model.get('permissives', []): + return False + else: + property_ = 'display' + needs = False + if index is not None and property_ in self.temp.get(path, {}).get(str(index), {}): + return self.temp[path][str(index)][property_] == needs + if property_ in self.temp.get(path, {}): + return self.temp[path][property_] == needs + elif self.isfollower(path): + if self.model.get(path, {}).get('null', {}).get(property_, None) == needs: + return True + elif self.model.get(path, {}).get(property_, None) == needs: + return True + if index is not None: + index = str(index) + if self.model.get(path, {}).get(index, {}).get(property_) == needs: return True - if index is not None: - index = str(index) - if self.model.get(path, {}).get(index, {}).get(property_) == needs: - return True return False + def get_from_temp_model(self, + path, + index): + if path in self.temp: + is_delete = 'delete' in self.temp[path] and self.temp[path]['delete'] == True + if index is not None and not is_delete and 'delete' in self.temp[path].get(index, {}): + is_delete = self.temp[path][index]['delete'] == True + if is_delete: + return None + if index is None and 'value' in self.temp[path] or 'value' in self.temp[path].get(index, {}): + return self.temp[path] + return self.model.get(path) + def get_value(self, path: str, index: int=None) -> Any: @@ -728,30 +849,37 @@ class Config: path = schema['opt_path'] schema = self.get_schema(path) if index is None: - if 'value' in self.temp.get(path, {}): - value = self.temp[path]['value'] - else: - value = self.model.get(path, {}).get('value') - if value is None and schema.get('isMulti', False): + if self.isfollower(path): value = [] + parent_schema = self.get_schema(path.rsplit('.', 1)[0]) + leader = next(iter(parent_schema['properties'].keys())) + leadership_len = len(self.get_value(leader)) + for idx in range(leadership_len): + val = self.get_value(path, + idx) + self._check_raises_warnings(path, idx, val, schema['type']) + value.append(val) + else: + value = self.get_from_temp_model(path, index) + if value is not None and 'value' in value: + value = value['value'] + else: + value = schema.get('value') + if value is None and schema.get('isMulti', False): + value = [] else: index = str(index) - if 'delete' in self.temp.get(path, {}): - value = None - elif self.temp.get(path, {}).get(index, {}).get('delete') == True: - value = None - elif 'value' in self.temp.get(path, {}).get(index, {}): - value = self.temp[path] - else: - value = self.model.get(path) if self.isfollower(path): if self.is_hidden(path, index): - value = PropertiesOptionError(None, None, None, opt_type='option') - elif value is not None and 'value' in value.get(index, {}): - value = value[index]['value'] + value = PropertiesOptionError(None, {'disabled'}, None, opt_type='option') else: - value = schema.get('default') + value = self.get_from_temp_model(path, index) + if value is not None and 'value' in value.get(index, {}): + value = value[index]['value'] + else: + value = schema.get('defaultmulti') else: + value = self.get_from_temp_model(path, index) if value is not None and index in value and 'value' in value[index]: value = value[index]['value'] else: @@ -765,20 +893,24 @@ class Config: def get_owner(self, path: str, index: int) -> str: - if not self.isfollower(path): + schema = self.get_schema(path) + if schema['type'] == 'symlink': + opt_path = schema['opt_path'] + index = str(index) + if self.is_hidden(opt_path, index): + raise PropertiesOptionError(None, {'disabled'}, None, opt_type='option') + return self.get_owner(opt_path, index) + elif not self.isfollower(path): if 'owner' in self.temp.get(path, {}): owner = self.temp[path]['owner'] else: owner = self.model.get(path, {}).get('owner', 'default') else: - if 'value' in self.temp.get(path, {}): - value = self.temp[path] - else: - value = self.model.get(path, {}) index = str(index) if self.is_hidden(path, index): - raise PropertiesOptionError(None, None, None, opt_type='option') - if 'owner' in value.get(index, {}): + raise PropertiesOptionError(None, {'disabled'}, None, opt_type='option') + value = self.get_from_temp_model(path, index) + if value is not None and 'owner' in value.get(index, {}): owner = value[index]['owner'] else: owner = 'default' @@ -804,7 +936,7 @@ class Config: del self.updates[-1] else: break - elif last_body['index'] == index: + elif last_body.get('index') == index: if last_body['action'] == 'add' and action == 'modify': action = 'add' update_last_action = True @@ -826,12 +958,19 @@ class Config: else: data = {'action': action, 'name': path} - if action != 'delete' and value is not None: + if action != 'delete' and value is not undefined: data['value'] = value if index is not None: data['index'] = index self.updates.append(data) + def send(self): + if DEBUG: + print('<===== send') + print(self.updates) + self.updates_data(self.send_data({'updates': self.updates, + 'model': self.model})) + def updates_value(self, action: str, path: str, @@ -840,93 +979,101 @@ class Config: remote: bool, default_value: bool=False, leader_old_value: Optional[Any]=undefined) -> None: - if 'pattern' in self.form.get(path, {}) and (not isinstance(value, list) or undefined not in value): - match = self.test_value(path, value, remote) + if 'pattern' in self.form.get(path, {}) and (not isinstance(value, list) or undefined not in value) and not self.test_value(path, index, value, remote): + return + if remote: + self.send() else: - match = True - if match: - if remote: - self.updates_data(self.send_data({'updates': self.updates, - 'model': self.model})) - - else: - if action == 'delete': - if index is None: - # leader or standard option - # set value to default value - value = self.default_value(path) - self._set_temp_value(path, None, value, 'default') - if self.option(path).option.isleader(): - # if leader, set follower to default value - leadership_path = path.rsplit('.', 1)[0] - parent_schema = self.get_schema(leadership_path) - iter_leadership = list(parent_schema['properties'].keys()) - for follower in iter_leadership[1:]: - # delete all values - self._del_temp_value(follower, None) - value = self.get_value(path) - elif self.option(path).option.isleader(): - # if remove an indexed leader value + if path in self.model and (index is None or str(index) in self.model[path]): + model = self.model[path] + if index is not None: + model = model[str(index)] + if 'warnings' in model: + del model['warnings'] + if 'error' in model: + del model['error'] + if action == 'delete': + if self.option(path).option.isleader(): + # if remove an indexed leader value + if index is not None: leader_value = self.option(path).value.get() leader_value.pop(index) - max_value = len(leader_value) - self._set_temp_value(path, None, leader_value, 'tmp') - leadership_path = path.rsplit('.', 1)[0] - parent_schema = self.get_schema(leadership_path) - iter_leadership = list(parent_schema['properties'].keys()) - for follower in iter_leadership[1:]: - # remove value for this index and reduce len - new_temp = {} - for idx in range(max_value): + owner = self.global_model.get('owner', 'tmp') + else: + leader_value = self.default_value(path) + owner = 'default' + max_value = len(leader_value) + 1 + self._set_temp_value(path, None, leader_value, owner) + leadership_path = path.rsplit('.', 1)[0] + parent_schema = self.get_schema(leadership_path) + iter_leadership = list(parent_schema['properties'].keys()) + for follower in iter_leadership[1:]: + # remove value for this index and reduce len + new_temp = {} + for idx in range(max_value): + cur_index = idx + if index is not None: if index == idx: continue - cur_index = idx if index < cur_index: - cur_index = -1 - if 'delete' in self.temp.get(follower, {}): - #FIXME copier les attributs hidden, ... depuis self.temp[follower][index] ? + cur_index -= 1 + if 'delete' in self.temp.get(follower, {}): + #FIXME copier les attributs hidden, ... depuis self.temp[follower][index] ? + new_temp[str(cur_index)] = {'delete': True} + elif self.temp.get(follower, {}).get(str(idx)) is not None: + if index is None or index == idx: new_temp[str(cur_index)] = {'delete': True} - elif self.temp.get(follower, {}).get(str(idx)) is not None: + else: new_temp[str(cur_index)] = self.temp[follower][str(idx)] - elif self.model.get(follower, {}).get(str(idx)) is not None: + elif self.model.get(follower, {}).get(str(idx)) is not None: + if index is None or index == idx: + new_temp[str(cur_index)] = {'delete': True} + else: new_temp[str(cur_index)] = self.model[follower][str(idx)] - if self.model[follower].get(str(max_value)) is not None: - # FIXME copier les attributs hidden, ... depuis self.temp[follower][index] ? - new_temp[str(max_value)] = {'delete': True} - self.temp[follower] = new_temp - value = leader_value - index = None - else: - # it's a follower with index - self.temp.setdefault(path, {})[str(index)] = {'delete': True} - self._del_temp_value(path, index) - value = self.get_value(path, index) - default_value = True + if self.model.get(follower, {}).get(str(max_value)) is not None: + # FIXME copier les attributs hidden, ... depuis self.temp[follower][index] ? + new_temp[str(max_value)] = {'delete': True} + self.temp[follower] = new_temp + value = leader_value + index = None elif index is None: - # set a value for a not follower option - if default_value is True: - self.model[path]['value'] = value - else: - self._set_temp_value(path, None, value, 'tmp') + self._del_temp_value(path, index) + value = self.get_value(path) else: - # set a value for a follower option - self.temp.setdefault(path, {})[str(index)] = {'value': value, 'owner': 'tmp'} - if default_value is True: - self.model[path][str(index)]['value'] = value - else: - self._set_temp_value(path, index, value, 'tmp') - self.set_dependencies(path, value, index=index) - self.set_not_equal(path, value) - self.do_copy(path, value) - if leader_old_value is not undefined and len(leader_old_value) < len(value): - # if leader and length is change, display/hide follower from follower's default value - index = len(value) - 1 - parent_path = '.'.join(path.split('.')[:-1]) - followers = list(self.option(parent_path).list())[1:] - for follower in followers: - follower_path = follower.option.path() + # it's a follower with index + self.temp.setdefault(path, {})[str(index)] = {'delete': True} + self._del_temp_value(path, index) + value = self.get_value(path, index) + default_value = True + elif index is None: + # set a value for a not follower option + self.set_not_equal(path, value, index) + if default_value is True: + self.model[path]['value'] = value + else: + self._set_temp_value(path, None, value, self.global_model.get('owner', 'tmp')) + else: + self.set_not_equal(path, value, index) + # set a value for a follower option + self.temp.setdefault(path, {})[str(index)] = {'value': value, 'owner': self.global_model.get('owner', 'tmp')} + if default_value is True: + self.model[path][str(index)]['value'] = value + else: + self._set_temp_value(path, index, value, self.global_model.get('owner', 'tmp')) + self.set_dependencies(path, value, index=index) + self.do_copy(path, value) + if leader_old_value is not undefined and len(leader_old_value) < len(value): + # if leader and length is change, display/hide follower from follower's default value + index = len(value) - 1 + parent_path = '.'.join(path.split('.')[:-1]) + followers = list(self.option(parent_path).list())[1:] + for follower in followers: + follower_path = follower.option.path() + try: follower_value = self.option(follower_path, index).value.get() self.set_dependencies(follower_path, follower_value, None, index) + except PropertiesOptionError: + pass def _set_temp_value(self, path, index, value, owner): if index is not None: @@ -958,17 +1105,24 @@ class Config: return value def updates_data(self, data): + if DEBUG: + from pprint import pprint + print('====> updates_data') + pprint(data) self.updates = [] self.temp.clear() self.model = data['model'] def test_value(self, path: str, + index: Optional[int], value: Any, remote: bool): if isinstance(value, list): for val in value: - if not self.test_value(path, val, remote): + if not self.test_value(path, index, val, remote): + if not 'demoting_error_warning' in self.global_model.get('properties', ['demoting_error_warning']): + raise ValueError('value {} is not valid for {}'.format(value, path)) return False return True else: @@ -977,12 +1131,25 @@ class Config: else: if isinstance(value, int): value = str(value) - match = self.form[path]['pattern'].search(value) + match = self.form[path]['pattern'].search(value) is not None if not remote: if not match: - self.temp.setdefault(path, {})['error'] = [''] - elif 'error' in self.model[path]: + if index is None: + self.temp.setdefault(path, {})['error'] = [''] + else: + self.temp.setdefault(path, {}) + self.temp[path].setdefault(str(index), {}) + self.temp[path][str(index)]= [''] + elif index is not None and 'error' in self.temp.get(path, {}).get(str(index), {}): + del self.temp[path][str(index)]['error'] + elif 'error' in self.temp.get(path, {}): del self.temp[path]['error'] + if index is not None and 'error' in self.model.get(path, {}).get(str(index), {}): + del self.model[path][str(index)]['error'] + elif 'error' in self.model.get(path, {}): + del self.model[path]['error'] + if not match and not 'demoting_error_warning' in self.global_model.get('properties', ['demoting_error_warning']): + raise ValueError('value {} is not valid for {}'.format(value, path)) return match def set_dependencies(self, @@ -992,30 +1159,43 @@ class Config: index: Optional[int]=None) -> None: dependencies = self.form.get(path, {}).get('dependencies', {}) if dependencies: - if ori_value in dependencies['expected']: - expected = dependencies['expected'][ori_value] + if not isinstance(ori_value, list): + self._set_dependencies(path, ori_value, dependencies, force_hide, index) else: - expected = dependencies['default'] - for action in ['hide', 'show']: - expected_actions = expected.get(action) - if expected_actions: - if force_hide: - hidden = True - else: - hidden = action == 'hide' - for expected_path in expected_actions: - if index is not None: - self.temp.setdefault(expected_path, {}).setdefault(str(index), {})['hidden'] = hidden + for idx, ori_val in enumerate(ori_value): + self._set_dependencies(path, ori_val, dependencies, force_hide, idx) + + def _set_dependencies(self, + path: str, + ori_value: Any, + dependencies: Dict, + force_hide: bool, + index: Optional[int]) -> None: + if ori_value in dependencies['expected']: + expected = dependencies['expected'][ori_value] + else: + expected = dependencies['default'] + for action in ['hide', 'show']: + expected_actions = expected.get(action) + if expected_actions: + if force_hide: + display = False else: - self.temp.setdefault(expected_path, {})['hidden'] = hidden - value = self.get_value(expected_path, index) - self.set_dependencies(expected_path, value, hidden, index) + display = action == 'show' + for expected_path in expected_actions: + if index is not None: + self.temp.setdefault(expected_path, {}).setdefault(str(index), {})['display'] = display + else: + self.temp.setdefault(expected_path, {})['display'] = display + value = self.get_value(expected_path, index) + self.set_dependencies(expected_path, value, not display, index) def set_not_equal(self, path: str, - value: Any) -> None: - not_equal = self.form.get(path, {}).get('not_equal', {}) - if not_equal: + value: Any, + index: Optional[int]) -> None: + not_equals = self.form.get(path, {}).get('not_equal', []) + if not_equals: vals = [] opts = [] if isinstance(value, list): @@ -1025,55 +1205,59 @@ class Config: else: vals.append(value) opts.append(path) - for path_ in self.form[path]['not_equal']['options']: - schema = self.get_schema(path_) - p_value = self.get_value(path_) - if isinstance(p_value, list): - for val in p_value: - vals.append(val) + for not_equal in not_equals: + for path_ in not_equal['options']: + if self.is_hidden(path_, index, permissive=True): + raise PropertiesOptionError(None, {'hidden'}, None, opt_type='option') + schema = self.get_schema(path_) + p_value = self.get_value(path_) + if isinstance(p_value, list): + for val in p_value: + vals.append(val) + opts.append(path_) + else: + vals.append(p_value) opts.append(path_) + equal = [] + warnings_only = not_equal.get('warnings', False) + if warnings_only and 'warnings' not in self.global_model.get('properties', []): + continue + if warnings_only: + msg = _('should be different from the value of {}') + #msgcurr = _('value for {} should be different') else: - vals.append(p_value) - opts.append(path_) - equal = [] - warnings_only = self.form[path]['not_equal'].get('warnings', False) - if warnings_only: - msg = _('should be different from the value of "{}"') - msgcurr = _('value for {} should be different') - else: - msg = _('must be different from the value of "{}"') - msgcurr = _('value for {} must be different') - for idx_inf, val_inf in enumerate(vals): - for idx_sup, val_sup in enumerate(vals[idx_inf + 1:]): - if val_inf == val_sup is not None: - for opt_ in [opts[idx_inf], opts[idx_inf + idx_sup + 1]]: - if opt_ not in equal: - equal.append(opt_) - if equal: - equal_name = {} - for opt in equal: - schema = self.get_schema(opt) - equal_name[opt] = schema['title'] - for opt_ in equal: + msg = _('must be different from the value of {}') + #msgcurr = _('value for {} must be different') + for idx_inf, val_inf in enumerate(vals): + for idx_sup, val_sup in enumerate(vals[idx_inf + 1:]): + if val_inf == val_sup is not None: + for opt_ in [opts[idx_inf], opts[idx_inf + idx_sup + 1]]: + if opt_ not in equal: + equal.append(opt_) + if equal: + equal_name = {} display_equal = [] - for opt__ in equal: - if opt_ != opt__: - display_equal.append(equal_name[opt_]) - display_equal = ', '.join(display_equal) - if opt_ == path: - msg_ = msgcurr.format(display_equal) - else: - msg_ = msg.format(display_equal) - if warnings_only: - self.model[opt_].setdefault('warnings', []).append(msg_) - else: - self.model[opt_].setdefault('error', []).append(msg_) - else: - for opt in opts: - if 'warnings' in self.model[opt]: - del self.model[opt]['warnings'] - if 'error' in self.model[opt]: - del self.model[opt]['error'] + for opt_ in equal: + display_equal.append('"' + self.get_schema(opt_)['title'] + '"') + display_equal = display_list(display_equal) + #if opt_ == path: + # msg_ = msgcurr.format(display_equal) + #else: + msg_ = msg.format(display_equal) + for path_ in not_equal['options'] + [path]: + if path_ not in self.model: + self.model[path_] = {} + model = self.model[path_] + if index is not None: + if index not in model: + model[str(index)] = {} + model = model[str(index)] + if warnings_only: + model.setdefault('warnings', []).append(msg_) + else: + if 'demoting_error_warning' not in self.global_model.get('properties', []): + raise ValueError(msg_) + model.setdefault('error', []).append(msg_) def do_copy(self, path: str, @@ -1092,6 +1276,33 @@ class Config: remote = self.form.get(opt, {}).get('remote', False) self.updates_value('modify', opt, None, value, remote, True) + def _check_raises_warnings(self, path, index, value, type, withwarning=True): + model = self.model.get(path, {}) + if index is not None: + model = model.get(str(index), {}) + for err in model.get('error', []): + if 'demoting_error_warning' in self.global_model.get('properties', []): + warnings.warn_explicit(ValueErrorWarning(value, + type, + Option(path, path), + '{0}'.format(err), + index), + ValueErrorWarning, + 'Option', 0) + else: + del model['error'] + raise ValueError(err) + + if withwarning and model.get('warnings'): + for warn in model.get('warnings'): + warnings.warn_explicit(ValueErrorWarning(value, + type, + Option(path, path), + '{0}'.format(warn), + index), + ValueErrorWarning, + 'Option', 0) + def send_data(self, updates): raise NotImplementedError('please implement send_data method') diff --git a/tiramisu_json_api/error.py b/tiramisu_json_api/error.py index 2a8c4fc..1693afa 100644 --- a/tiramisu_json_api/error.py +++ b/tiramisu_json_api/error.py @@ -1,5 +1,5 @@ try: - from tiramisu.error import APIError, ValueWarning, ValueOptionError, ValueErrorWarning, PropertiesOptionError + from tiramisu.error import APIError, ValueWarning, ValueOptionError, ValueErrorWarning, PropertiesOptionError, ConfigError, display_list except ModuleNotFoundError: import weakref from .i18n import _ @@ -34,6 +34,18 @@ except ModuleNotFoundError: last = '"{}"'.format(last) return ', '.join(lst_) + _(' {} ').format(separator) + '{}'.format(last) + #____________________________________________________________ + # Exceptions for a Config + class ConfigError(Exception): + """attempt to change an option's owner without a value + or in case of `_cfgimpl_descr` is None + or if a calculation cannot be carried out""" + def __init__(self, + exp, + ori_err=None): + super().__init__(exp) + self.ori_err = ori_err + class APIError(Exception): pass @@ -42,20 +54,25 @@ except ModuleNotFoundError: val, display_type, opt, - err_msg): + err_msg, + index): self.val = val self.display_type = display_type self.opt = weakref.ref(opt) self.err_msg = err_msg + self.index = index super().__init__(self.err_msg) def __str__(self): try: msg = self.prefix except AttributeError: - self.prefix = self.tmpl.format(self.val, - self.display_type, - self.opt().impl_get_display_name()) + if self.opt() is None: + self.prefix = '' + else: + self.prefix = self.tmpl.format(self.val, + self.display_type, + self.opt().impl_get_display_name()) msg = self.prefix if self.err_msg: if msg: @@ -112,6 +129,8 @@ except ModuleNotFoundError: # this part is a bit slow, so only execute when display if self.msg: return self.msg + if self._option_bag is None: + return "unknown error" req = self._settings.apply_requires(self._option_bag, True) # if req != {} or self._orig_opt is not None: