python/tests/unit/data.py.hbs
raw| 1 | # SPDX-FileCopyrightText: Peter Pentchev <[email protected]> |
| 2 | # SPDX-License-Identifier: BSD-2-Clause |
| 3 | |
| 4 | """Data for the unit tests for the feature-check Python library.""" |
| 5 | |
| 6 | FEATURES = { {{#each simple.features}} "{{@key}}": "{{this}}", {{/each}} } |
| 7 | |
| 8 | SYNONYMS = { |
| 9 | {{#each simple.synonyms}} |
| 10 | "{{this.name}}": "{{this.sym}}", |
| 11 | {{/each}} |
| 12 | } |
| 13 | |
| 14 | COMPARE = [ |
| 15 | {{#each simple.compare}} |
| 16 | ("{{this.name}}", "{{this.op}}", "{{this.version}}", {{pybool this.result}}), |
| 17 | {{/each}} |
| 18 | ] |