diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2020-08-07 20:25:00 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-07 20:25:00 -0500 |
| commit | 05dba35cab34c2524b945da0164327b7b8a1159d (patch) | |
| tree | e1f263a316839c0d32a413c120a3c92426f36817 /tests/templates | |
| parent | Create python-package-ci.yml (diff) | |
| parent | Fix ConfigFile default (diff) | |
| download | config-file-05dba35cab34c2524b945da0164327b7b8a1159d.zip | |
Merge pull request #24 from eugenetriguba/dev
v0.11.0
Diffstat (limited to 'tests/templates')
| -rw-r--r-- | tests/templates/ini/all_strings.ini | 7 | ||||
| -rw-r--r-- | tests/templates/ini/default.ini | 7 | ||||
| -rw-r--r-- | tests/templates/ini/invalid.ini | 2 | ||||
| -rw-r--r-- | tests/templates/json/all_strings.json | 9 | ||||
| -rw-r--r-- | tests/templates/json/default.json | 13 | ||||
| -rw-r--r-- | tests/templates/json/invalid.json | 1 | ||||
| -rw-r--r-- | tests/templates/toml/all_strings.toml | 6 | ||||
| -rw-r--r-- | tests/templates/toml/default.toml | 7 | ||||
| -rw-r--r-- | tests/templates/toml/invalid.toml | 1 | ||||
| -rw-r--r-- | tests/templates/yaml/all_strings.yaml | 6 | ||||
| -rw-r--r-- | tests/templates/yaml/default.yaml | 7 | ||||
| -rw-r--r-- | tests/templates/yaml/invalid.yaml | 6 |
12 files changed, 72 insertions, 0 deletions
diff --git a/tests/templates/ini/all_strings.ini b/tests/templates/ini/all_strings.ini new file mode 100644 index 0000000..9ac0ecf --- /dev/null +++ b/tests/templates/ini/all_strings.ini @@ -0,0 +1,7 @@ +[header] +list = [] +dict = {} +num = 5 +bool = false +float = 5.5 + diff --git a/tests/templates/ini/default.ini b/tests/templates/ini/default.ini new file mode 100644 index 0000000..4f711db --- /dev/null +++ b/tests/templates/ini/default.ini @@ -0,0 +1,7 @@ +[header_one] +number_key = 0 + +[header_two] +str_key = "string" +list_key = [1, 2, 3] + diff --git a/tests/templates/ini/invalid.ini b/tests/templates/ini/invalid.ini new file mode 100644 index 0000000..c2a81db --- /dev/null +++ b/tests/templates/ini/invalid.ini @@ -0,0 +1,2 @@ +[[[[[]]]]] +i am a key
\ No newline at end of file diff --git a/tests/templates/json/all_strings.json b/tests/templates/json/all_strings.json new file mode 100644 index 0000000..18ada7b --- /dev/null +++ b/tests/templates/json/all_strings.json @@ -0,0 +1,9 @@ +{ + "header": { + "list": "[]", + "dict": "{}", + "num": "5", + "bool": "false", + "float": "5.5" + } +}
\ No newline at end of file diff --git a/tests/templates/json/default.json b/tests/templates/json/default.json new file mode 100644 index 0000000..83d9b1e --- /dev/null +++ b/tests/templates/json/default.json @@ -0,0 +1,13 @@ +{ + "header_one": { + "number_key": 0 + }, + "header_two": { + "str_key": "string", + "list_key": [ + 1, + 2, + 3 + ] + } +}
\ No newline at end of file diff --git a/tests/templates/json/invalid.json b/tests/templates/json/invalid.json new file mode 100644 index 0000000..8e12c39 --- /dev/null +++ b/tests/templates/json/invalid.json @@ -0,0 +1 @@ +{'test': }
\ No newline at end of file diff --git a/tests/templates/toml/all_strings.toml b/tests/templates/toml/all_strings.toml new file mode 100644 index 0000000..8fda0d8 --- /dev/null +++ b/tests/templates/toml/all_strings.toml @@ -0,0 +1,6 @@ +[header] +list = "[]" +dict = "{}" +num = "5" +bool = "false" +float = "5.5"
\ No newline at end of file diff --git a/tests/templates/toml/default.toml b/tests/templates/toml/default.toml new file mode 100644 index 0000000..e0437cf --- /dev/null +++ b/tests/templates/toml/default.toml @@ -0,0 +1,7 @@ +[header_one] +number_key = 0 + +[header_two] +# preserves comments +str_key = "string" +list_key = [1, 2, 3] diff --git a/tests/templates/toml/invalid.toml b/tests/templates/toml/invalid.toml new file mode 100644 index 0000000..d1b18e3 --- /dev/null +++ b/tests/templates/toml/invalid.toml @@ -0,0 +1 @@ +[[[[[[notvalidtoml]]]]]]
\ No newline at end of file diff --git a/tests/templates/yaml/all_strings.yaml b/tests/templates/yaml/all_strings.yaml new file mode 100644 index 0000000..1c94b37 --- /dev/null +++ b/tests/templates/yaml/all_strings.yaml @@ -0,0 +1,6 @@ +header: + list: "[]" + dict: "{}" + num: "5" + bool: "false" + float: "5.5"
\ No newline at end of file diff --git a/tests/templates/yaml/default.yaml b/tests/templates/yaml/default.yaml new file mode 100644 index 0000000..8c7c63e --- /dev/null +++ b/tests/templates/yaml/default.yaml @@ -0,0 +1,7 @@ +header_one: + number_key: 0 + +header_two: + # preserves comments + list_key: [1, 2, 3] + str_key: string diff --git a/tests/templates/yaml/invalid.yaml b/tests/templates/yaml/invalid.yaml new file mode 100644 index 0000000..cf2a4ff --- /dev/null +++ b/tests/templates/yaml/invalid.yaml @@ -0,0 +1,6 @@ +invalid-yaml: +yar: +i: +am: +invalid: +boo
\ No newline at end of file |