-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds more unit testing for V1 support
- Upgrades more existing unit tests to use a V1 example. This is done with parameterization - Adds missing logic to recipe conversion work. Converted recipes now re-initizialize their variable tables - Re-enables skipped test
- Loading branch information
1 parent
75dc025
commit 418b0ea
Showing
4 changed files
with
117 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
82 changes: 82 additions & 0 deletions
82
tests/test_aux_files/v1_format/v1_simple-recipe_to_str.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
-------------------- | ||
RecipeParser Instance | ||
- Schema Version: 1 | ||
- Variables Table: | ||
{ | ||
"zz_non_alpha_first": 42, | ||
"name": "types-toml", | ||
"version": "0.10.8.6" | ||
} | ||
- Selectors Table: | ||
[unix and win] | ||
- empty_field2 -> /requirements/empty_field2 | ||
- is_modified?: False | ||
- Tree: | ||
/ | ||
|- <Comment: # Comment above a top-level structure> | ||
|- schema_version | ||
|- 1 | ||
|- context | ||
|- zz_non_alpha_first | ||
|- 42 | ||
|- name | ||
|- types-toml | ||
|- version | ||
|- 0.10.8.6 | ||
|- package | ||
|- name | ||
|- ${{ name|lower }} | ||
|- build | ||
|- number | ||
|- 0 | ||
|- skip | ||
|- match(python, "<3.7") | ||
|- is_true | ||
|- True | ||
|- requirements | ||
|- empty_field1 | ||
|- host | ||
|- <Collection Node> | ||
|- if | ||
|- unix | ||
|- then | ||
|- setuptools | ||
|- <Collection Node> | ||
|- if | ||
|- unix | ||
|- then | ||
|- fakereq | ||
|- empty_field2 | ||
|- run | ||
|- python | ||
|- empty_field3 | ||
|- about | ||
|- summary | ||
|- This is a small recipe for testing | ||
|- description | ||
|- ["This is a PEP '561 type stub package for the toml package.", 'It can be used by type-checking tools like mypy, pyright,', 'pytype, PyCharm, etc. to check code that uses toml.'] | ||
|- license | ||
|- Apache-2.0 AND MIT | ||
|- multi_level | ||
|- list_1 | ||
|- foo | ||
|- <Comment: # Ensure a comment in a list is supported> | ||
|- bar | ||
|- list_2 | ||
|- cat | ||
|- bat | ||
|- mat | ||
|- list_3 | ||
|- ls | ||
|- sl | ||
|- cowsay | ||
|- test_var_usage | ||
|- foo | ||
|- ${{ version }} | ||
|- bar | ||
|- baz | ||
|- ${{ zz_non_alpha_first }} | ||
|- blah | ||
|- This ${{ name }} is silly | ||
|- last | ||
-------------------- |