Mercurial > hgrepos > Python > libs > ConfigMix
annotate tests/data/conf21.yml @ 513:599e8ade567c
str.join(): use a list comprehension instead of a generator expression for performance reasons
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sun, 19 Dec 2021 10:38:20 +0100 |
| parents | af371f9c016d |
| children |
| rev | line source |
|---|---|
|
105
1c2f8a96dec2
Unittests with some real-worl-examples of .yml and .ini configuration files
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
diff
changeset
|
1 # -*- coding: utf-8; mode: yaml; indent-tabs-mode: nil; -*- |
|
1c2f8a96dec2
Unittests with some real-worl-examples of .yml and .ini configuration files
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
diff
changeset
|
2 # |
|
1c2f8a96dec2
Unittests with some real-worl-examples of .yml and .ini configuration files
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
diff
changeset
|
3 # To be merged into conf20.yml |
|
1c2f8a96dec2
Unittests with some real-worl-examples of .yml and .ini configuration files
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
diff
changeset
|
4 # |
|
1c2f8a96dec2
Unittests with some real-worl-examples of .yml and .ini configuration files
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
diff
changeset
|
5 %YAML 1.1 |
|
1c2f8a96dec2
Unittests with some real-worl-examples of .yml and .ini configuration files
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
diff
changeset
|
6 --- |
|
1c2f8a96dec2
Unittests with some real-worl-examples of .yml and .ini configuration files
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
diff
changeset
|
7 |
|
1c2f8a96dec2
Unittests with some real-worl-examples of .yml and .ini configuration files
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
diff
changeset
|
8 appdir: '{{OS:cwd}}' |
|
1c2f8a96dec2
Unittests with some real-worl-examples of .yml and .ini configuration files
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
diff
changeset
|
9 _tmpdir: '{{appdir}}/tmp' |
|
1c2f8a96dec2
Unittests with some real-worl-examples of .yml and .ini configuration files
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
diff
changeset
|
10 tmpdir: '{{_tmpdir|abspath|normpath}}' |
|
1c2f8a96dec2
Unittests with some real-worl-examples of .yml and .ini configuration files
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
diff
changeset
|
11 |
|
1c2f8a96dec2
Unittests with some real-worl-examples of .yml and .ini configuration files
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
diff
changeset
|
12 db: |
|
1c2f8a96dec2
Unittests with some real-worl-examples of .yml and .ini configuration files
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
diff
changeset
|
13 user: |
|
1c2f8a96dec2
Unittests with some real-worl-examples of .yml and .ini configuration files
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
diff
changeset
|
14 name: 'the_database_user' |
|
1c2f8a96dec2
Unittests with some real-worl-examples of .yml and .ini configuration files
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
diff
changeset
|
15 pwd: 'the-database-password' |
|
1c2f8a96dec2
Unittests with some real-worl-examples of .yml and .ini configuration files
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
diff
changeset
|
16 catalog: 'my_database_catalog' |
|
1c2f8a96dec2
Unittests with some real-worl-examples of .yml and .ini configuration files
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
diff
changeset
|
17 |
|
1c2f8a96dec2
Unittests with some real-worl-examples of .yml and .ini configuration files
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
diff
changeset
|
18 locinfo: |
|
1c2f8a96dec2
Unittests with some real-worl-examples of .yml and .ini configuration files
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
diff
changeset
|
19 ro: |
|
1c2f8a96dec2
Unittests with some real-worl-examples of .yml and .ini configuration files
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
diff
changeset
|
20 hostname: anotherhost |
|
109
057d87d030f1
Test replacing lists by strings and replacing strings by lists
Franz Glasner <hg@dom66.de>
parents:
105
diff
changeset
|
21 |
|
057d87d030f1
Test replacing lists by strings and replacing strings by lists
Franz Glasner <hg@dom66.de>
parents:
105
diff
changeset
|
22 test: |
|
057d87d030f1
Test replacing lists by strings and replacing strings by lists
Franz Glasner <hg@dom66.de>
parents:
105
diff
changeset
|
23 List: not a list any more |
|
057d87d030f1
Test replacing lists by strings and replacing strings by lists
Franz Glasner <hg@dom66.de>
parents:
105
diff
changeset
|
24 |
|
057d87d030f1
Test replacing lists by strings and replacing strings by lists
Franz Glasner <hg@dom66.de>
parents:
105
diff
changeset
|
25 Str: |
|
057d87d030f1
Test replacing lists by strings and replacing strings by lists
Franz Glasner <hg@dom66.de>
parents:
105
diff
changeset
|
26 - 0 |
|
057d87d030f1
Test replacing lists by strings and replacing strings by lists
Franz Glasner <hg@dom66.de>
parents:
105
diff
changeset
|
27 - 1 |
|
057d87d030f1
Test replacing lists by strings and replacing strings by lists
Franz Glasner <hg@dom66.de>
parents:
105
diff
changeset
|
28 - 2 |
|
276
af371f9c016d
Allow deletion of key-value pairs when merging is done.
Franz Glasner <fzglas.hg@dom66.de>
parents:
109
diff
changeset
|
29 |
|
af371f9c016d
Allow deletion of key-value pairs when merging is done.
Franz Glasner <fzglas.hg@dom66.de>
parents:
109
diff
changeset
|
30 |
|
af371f9c016d
Allow deletion of key-value pairs when merging is done.
Franz Glasner <fzglas.hg@dom66.de>
parents:
109
diff
changeset
|
31 to-be-deleted: '{{::DEL::}}' |
|
af371f9c016d
Allow deletion of key-value pairs when merging is done.
Franz Glasner <fzglas.hg@dom66.de>
parents:
109
diff
changeset
|
32 to-be-deleted-but-reassigned: '{{::DEL::}}' |
