plain-parser 0.1.2.dev3__tar.gz → 0.1.2.dev4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/PKG-INFO +1 -1
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/src/plain_parser/loaders.py +14 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/src/plain_parser/plain_file.py +20 -11
- plain_parser-0.1.2.dev4/tests/data/plainfile/plain_source_with_missing_link.plain +9 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfile/task_manager_with_reference_links.plain +2 -2
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/test_cli.py +44 -40
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/test_loaders.py +42 -1
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/test_plainfileparser.py +43 -4
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/.flake8 +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/.github/workflows/lint-and-test.yml +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/.github/workflows/publish-dev-to-pypi.yml +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/.github/workflows/publish-to-pypi.yml +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/.gitignore +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/LICENSE +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/README.md +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/pyproject.toml +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/src/plain_parser/__init__.py +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/src/plain_parser/cli.py +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/src/plain_parser/concept_utils.py +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/src/plain_parser/exceptions.py +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/src/plain_parser/liquid_nodes.py +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/src/plain_parser/plain_spec.py +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/__init__.py +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/conftest.py +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/cli/acceptance_test_binary_resource.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/cli/acceptance_test_resource.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/cli/base64_resource.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/cli/binary.bin +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/cli/binary_resource.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/cli/code_variable_conflict.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/cli/code_variable_template.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/cli/missing_resource.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/cli/not_plain.md +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/cli/notes.md +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/cli/requires_binary_resource_base.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/cli/requires_binary_resource_top.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/cli/subdir/nested.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/cli/undefined_concept.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/cli/valid.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/imports/circular_imports_1.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/imports/circular_imports_2.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/imports/circular_imports_main.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/imports/diamond_import_1.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/imports/diamond_import_2.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/imports/diamond_import_common.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/imports/diamond_imports_main.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/imports/import_with_functionalities.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/imports/imports_module_with_functionalities.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/imports/non_existent_import.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfile/add_new_task_modal_specification.yaml +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfile/duplicate_specification_heading.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfile/empty_functional_specs_section.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfile/invalid_specification_order.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfile/missing_non_functional_requirements.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfile/no_functional_specs_section.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfile/plain_source_with_absolute_link.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfile/plain_source_with_url_link.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfile/task_list_ui_specification.yaml +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfile/without_non_functional_requirement.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfileparser/concept_validation_acceptance_tests.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfileparser/concept_validation_acceptance_tests_nondefined.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfileparser/concept_validation_defined_nondefined.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfileparser/concept_validation_defined_nondefined_2.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfileparser/concept_validation_definition.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfileparser/concept_validation_noconcepts.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfileparser/concept_validation_nonconcept.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfileparser/concept_validation_nondefined.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfileparser/concept_validation_redefinition.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfileparser/concept_validation_several_concepts.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfileparser/concept_validation_valid.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfileparser/cyclic_definitions.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfileparser/exported_concepts.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfileparser/exported_concepts_base.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfileparser/exported_concepts_defaults_exported.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfileparser/exported_concepts_example.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfileparser/exported_concepts_imported_exported.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfileparser/exported_concepts_inherited_reexported.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfileparser/exported_concepts_malformed.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfileparser/exported_concepts_missing_definition.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfileparser/exported_concepts_missing_definition_example.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfileparser/exported_concepts_multiple_per_bullet.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfileparser/exported_concepts_multiple_per_bullet_undefined.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfileparser/exported_concepts_nested.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfileparser/exported_concepts_nested_example.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfileparser/exported_concepts_no_definitions.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfileparser/exported_concepts_not_declared.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfileparser/exported_concepts_not_declared_example.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfileparser/exported_concepts_transitive_example.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfileparser/exported_concepts_transitive_l1.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfileparser/exported_concepts_transitive_l2.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfileparser/plain_file_parser_with_comments.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfileparser/plain_file_with_comments_indented.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfileparser/regular_plain_source.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfileparser/required_concepts.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfileparser/required_concepts_defs.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfileparser/required_concepts_example.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfileparser/required_concepts_l1.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfileparser/required_concepts_l2.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfileparser/required_concepts_missing.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfileparser/required_concepts_module.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfileparser/required_concepts_partial.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfileparser/required_concepts_partial_duplicate.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfileparser/requires_without_definitions_example.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfileparser/topological_sort.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/plainfileparser/topological_sort_not_referenced.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/requires/chain_base.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/requires/chain_fork_top.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/requires/chain_middle.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/requires/chain_top.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/requires/circular_requires_main.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/requires/circular_requires_sub.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/requires/diamond_requires_1.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/requires/diamond_requires_2.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/requires/diamond_requires_common.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/requires/diamond_requires_main.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/requires/independent_requires_1.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/requires/independent_requires_2.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/requires/independent_requires_main.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/requires/invalid_ancestor_base.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/requires/invalid_ancestor_top.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/requires/non_existent_require.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/requires/normal_requires_1.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/requires/normal_requires_2.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/requires/normal_requires_common.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/requires/normal_requires_main.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/sample_base64_image.txt +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/simple.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/templates/block_level_include.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/templates/code_variables.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/templates/header.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/templates/implement.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/templates/implement_2.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/templates/template_include.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/templates/test_hardest_problem.plain +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/test_exceptions.py +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/test_imports.py +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/test_plainfile.py +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/test_plainspec.py +0 -0
- {plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/test_requires.py +0 -0
|
@@ -36,6 +36,20 @@ def open_from(dirs, file_name):
|
|
|
36
36
|
return None
|
|
37
37
|
|
|
38
38
|
|
|
39
|
+
def resolve_linked_resource(dirs, file_name):
|
|
40
|
+
"""Return the first existing path for file_name across dirs, or None if not found.
|
|
41
|
+
|
|
42
|
+
Mirrors the search order used by open_from so that validating a linked resource and
|
|
43
|
+
loading it can never disagree.
|
|
44
|
+
"""
|
|
45
|
+
for dir in dirs:
|
|
46
|
+
full_file_name = os.path.join(dir, file_name)
|
|
47
|
+
if os.path.exists(full_file_name):
|
|
48
|
+
return full_file_name
|
|
49
|
+
|
|
50
|
+
return None
|
|
51
|
+
|
|
52
|
+
|
|
39
53
|
def load_linked_resources(template_dirs: list[str], resources_list, module_name: str):
|
|
40
54
|
linked_resources = {}
|
|
41
55
|
|
|
@@ -88,7 +88,7 @@ def remove_quotes(token):
|
|
|
88
88
|
token.children = tuple(new_children)
|
|
89
89
|
|
|
90
90
|
|
|
91
|
-
def check_section_for_linked_resources(section):
|
|
91
|
+
def check_section_for_linked_resources(section, template_dirs):
|
|
92
92
|
linked_resources = []
|
|
93
93
|
for link in traverse(section, klass=Link):
|
|
94
94
|
parsed_url = urlparse(link.node.target)
|
|
@@ -97,11 +97,19 @@ def check_section_for_linked_resources(section):
|
|
|
97
97
|
f"Plain syntax error: Only relative links are allowed (text: {link.node.children[0].content}, target: {link.node.target})."
|
|
98
98
|
)
|
|
99
99
|
|
|
100
|
-
|
|
101
|
-
|
|
100
|
+
resolved_target = loaders.resolve_linked_resource(template_dirs, link.node.target)
|
|
101
|
+
if resolved_target is None:
|
|
102
|
+
searched_dirs = "\n".join(f" {position}. {dir}" for position, dir in enumerate(template_dirs, start=1))
|
|
103
|
+
raise PlainSyntaxError(
|
|
104
|
+
f"Plain syntax error: Link {link.node.target} does not exist. "
|
|
105
|
+
f"Linked resources are looked up relative to the following directories "
|
|
106
|
+
f"(highest to lowest precedence):\n{searched_dirs}"
|
|
107
|
+
)
|
|
102
108
|
|
|
103
|
-
if not os.path.isfile(
|
|
104
|
-
raise PlainSyntaxError(
|
|
109
|
+
if not os.path.isfile(resolved_target):
|
|
110
|
+
raise PlainSyntaxError(
|
|
111
|
+
f"Plain syntax error: Link {link.node.target} must be a file (resolved to {resolved_target})."
|
|
112
|
+
)
|
|
105
113
|
|
|
106
114
|
if len(link.node.children) != 1:
|
|
107
115
|
raise PlainSyntaxError(f"Plain syntax error: Link must have text specified (link: {link.node.target}).")
|
|
@@ -120,15 +128,15 @@ def check_section_for_linked_resources(section):
|
|
|
120
128
|
section.linked_resources = linked_resources
|
|
121
129
|
|
|
122
130
|
|
|
123
|
-
def check_for_linked_resources(plain_source):
|
|
131
|
+
def check_for_linked_resources(plain_source, template_dirs):
|
|
124
132
|
for specification_heading in plain_spec.ALLOWED_SPECIFICATION_HEADINGS:
|
|
125
133
|
if specification_heading in plain_source and hasattr(plain_source[specification_heading], "children"):
|
|
126
134
|
for requirement in plain_source[specification_heading].children:
|
|
127
|
-
check_section_for_linked_resources(requirement)
|
|
135
|
+
check_section_for_linked_resources(requirement, template_dirs)
|
|
128
136
|
|
|
129
137
|
if hasattr(requirement, plain_spec.ACCEPTANCE_TESTS):
|
|
130
138
|
for acceptance_test in requirement.acceptance_tests:
|
|
131
|
-
check_section_for_linked_resources(acceptance_test)
|
|
139
|
+
check_section_for_linked_resources(acceptance_test, template_dirs)
|
|
132
140
|
|
|
133
141
|
|
|
134
142
|
def process_section_code_variables(section, code_variables):
|
|
@@ -756,7 +764,7 @@ def process_required_modules(
|
|
|
756
764
|
)
|
|
757
765
|
|
|
758
766
|
marshalled_plain_source = validate_and_marshall_module(
|
|
759
|
-
plain_file_parse_result, module_name, ancestor_exported_definitions, code_variables
|
|
767
|
+
plain_file_parse_result, module_name, ancestor_exported_definitions, code_variables, template_dirs
|
|
760
768
|
)
|
|
761
769
|
if module_name not in (chain_module_name for chain_module_name, _ in chain):
|
|
762
770
|
chain.append((module_name, marshalled_plain_source))
|
|
@@ -793,6 +801,7 @@ def validate_and_marshall_module(
|
|
|
793
801
|
module_name: str,
|
|
794
802
|
exported_definitions: list[mistletoe.block_token.token],
|
|
795
803
|
code_variables: dict,
|
|
804
|
+
template_dirs: list[str],
|
|
796
805
|
) -> dict:
|
|
797
806
|
"""Every check a module must pass after parsing, and its marshalled plain source tree."""
|
|
798
807
|
if len(plain_file_parse_result.required_concepts) > 0:
|
|
@@ -826,7 +835,7 @@ def validate_and_marshall_module(
|
|
|
826
835
|
|
|
827
836
|
process_acceptance_tests(plain_file_parse_result.plain_source)
|
|
828
837
|
|
|
829
|
-
check_for_linked_resources(plain_file_parse_result.plain_source)
|
|
838
|
+
check_for_linked_resources(plain_file_parse_result.plain_source, template_dirs)
|
|
830
839
|
|
|
831
840
|
marshalled_plain_source = marshall_plain_source(plain_file_parse_result.plain_source)
|
|
832
841
|
|
|
@@ -881,7 +890,7 @@ def _parse_module(
|
|
|
881
890
|
)
|
|
882
891
|
|
|
883
892
|
marshalled_plain_source = validate_and_marshall_module(
|
|
884
|
-
plain_file_parse_result, module_name, exported_definitions, code_variables
|
|
893
|
+
plain_file_parse_result, module_name, exported_definitions, code_variables, template_dirs
|
|
885
894
|
)
|
|
886
895
|
|
|
887
896
|
return module_name, marshalled_plain_source, plain_file_parse_result.required_modules, chain
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
|
|
30
30
|
- Implement the entry point for :App:.
|
|
31
31
|
|
|
32
|
-
- Show :TaskList:. The details of the user interface are provided in the file [task_list_ui_specification.yaml](
|
|
32
|
+
- Show :TaskList:. The details of the user interface are provided in the file [task_list_ui_specification.yaml](task_list_ui_specification.yaml).
|
|
33
33
|
|
|
34
|
-
- :User: should be able to add :Task:. Only valid :Task: items can be added. The details of the user interface are provided in the file [add_new_task_modal_specification.yaml](
|
|
34
|
+
- :User: should be able to add :Task:. Only valid :Task: items can be added. The details of the user interface are provided in the file [add_new_task_modal_specification.yaml](add_new_task_modal_specification.yaml).
|
|
35
35
|
|
|
36
36
|
- :User: should be able to delete :Task:.
|
|
37
37
|
|
|
@@ -9,12 +9,12 @@ from plain_parser import cli
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
@pytest.fixture
|
|
12
|
-
def
|
|
12
|
+
def cli_specs_dir(get_test_data_path):
|
|
13
13
|
return get_test_data_path("data/cli")
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
def test_check_valid_module_exits_zero(
|
|
17
|
-
exit_code = cli.main(["check", os.path.join(
|
|
16
|
+
def test_check_valid_module_exits_zero(cli_specs_dir, capsys):
|
|
17
|
+
exit_code = cli.main(["check", os.path.join(cli_specs_dir, "valid.plain")])
|
|
18
18
|
|
|
19
19
|
captured = capsys.readouterr()
|
|
20
20
|
assert exit_code == 0
|
|
@@ -36,7 +36,7 @@ def test_without_subcommand_is_usage_error(capsys):
|
|
|
36
36
|
assert exc_info.value.code == 2
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
def test_console_script_is_installed_and_exits_zero(
|
|
39
|
+
def test_console_script_is_installed_and_exits_zero(cli_specs_dir):
|
|
40
40
|
# The venv's script dir may not be on PATH when pytest is run through an absolute interpreter path.
|
|
41
41
|
search_path = os.pathsep.join([os.path.dirname(sys.executable), os.environ.get("PATH", "")])
|
|
42
42
|
script = shutil.which("plain-parser", path=search_path)
|
|
@@ -46,7 +46,7 @@ def test_console_script_is_installed_and_exits_zero(cli_data_dir):
|
|
|
46
46
|
pytest.fail(message) if os.environ.get("CI") else pytest.skip(message)
|
|
47
47
|
|
|
48
48
|
result = subprocess.run(
|
|
49
|
-
[script, "check", os.path.join(
|
|
49
|
+
[script, "check", os.path.join(cli_specs_dir, "valid.plain")], capture_output=True, text=True
|
|
50
50
|
)
|
|
51
51
|
|
|
52
52
|
assert result.returncode == 0
|
|
@@ -66,32 +66,32 @@ def _assert_ok(result):
|
|
|
66
66
|
assert out.endswith(": OK\n"), out
|
|
67
67
|
|
|
68
68
|
|
|
69
|
-
def test_check_valid_module_in_subdirectory_from_parent(
|
|
70
|
-
monkeypatch.chdir(
|
|
69
|
+
def test_check_valid_module_in_subdirectory_from_parent(cli_specs_dir, capsys, monkeypatch):
|
|
70
|
+
monkeypatch.chdir(cli_specs_dir)
|
|
71
71
|
|
|
72
72
|
exit_code, out, err = _run_check(capsys, os.path.join("subdir", "nested.plain"))
|
|
73
73
|
|
|
74
74
|
_assert_ok((exit_code, out, err))
|
|
75
75
|
|
|
76
76
|
|
|
77
|
-
def test_check_valid_module_with_linked_resource_in_acceptance_test(
|
|
78
|
-
monkeypatch.chdir(
|
|
77
|
+
def test_check_valid_module_with_linked_resource_in_acceptance_test(cli_specs_dir, capsys, monkeypatch, tmp_path):
|
|
78
|
+
monkeypatch.chdir(tmp_path)
|
|
79
79
|
|
|
80
|
-
exit_code, out, err = _run_check(capsys, "acceptance_test_resource.plain")
|
|
80
|
+
exit_code, out, err = _run_check(capsys, os.path.join(cli_specs_dir, "acceptance_test_resource.plain"))
|
|
81
81
|
|
|
82
82
|
_assert_ok((exit_code, out, err))
|
|
83
83
|
|
|
84
84
|
|
|
85
|
-
def test_check_nonexistent_template_dir_is_ignored(
|
|
85
|
+
def test_check_nonexistent_template_dir_is_ignored(cli_specs_dir, capsys):
|
|
86
86
|
exit_code, out, err = _run_check(
|
|
87
|
-
capsys, os.path.join(
|
|
87
|
+
capsys, os.path.join(cli_specs_dir, "valid.plain"), "--template-dir", os.path.join(cli_specs_dir, "nope")
|
|
88
88
|
)
|
|
89
89
|
|
|
90
90
|
_assert_ok((exit_code, out, err))
|
|
91
91
|
|
|
92
92
|
|
|
93
|
-
def test_check_undefined_concept(
|
|
94
|
-
exit_code, out, err = _run_check(capsys, os.path.join(
|
|
93
|
+
def test_check_undefined_concept(cli_specs_dir, capsys):
|
|
94
|
+
exit_code, out, err = _run_check(capsys, os.path.join(cli_specs_dir, "undefined_concept.plain"))
|
|
95
95
|
|
|
96
96
|
assert exit_code == 1
|
|
97
97
|
assert out == ""
|
|
@@ -101,30 +101,34 @@ def test_check_undefined_concept(cli_data_dir, capsys):
|
|
|
101
101
|
assert "Traceback" not in err
|
|
102
102
|
|
|
103
103
|
|
|
104
|
-
def test_check_missing_linked_resource(
|
|
105
|
-
monkeypatch.chdir(
|
|
104
|
+
def test_check_missing_linked_resource(cli_specs_dir, capsys, monkeypatch, tmp_path):
|
|
105
|
+
monkeypatch.chdir(tmp_path)
|
|
106
106
|
|
|
107
|
-
exit_code, out, err = _run_check(capsys, "missing_resource.plain")
|
|
107
|
+
exit_code, out, err = _run_check(capsys, os.path.join(cli_specs_dir, "missing_resource.plain"))
|
|
108
108
|
|
|
109
109
|
assert exit_code == 1
|
|
110
110
|
assert out == ""
|
|
111
|
-
assert err ==
|
|
111
|
+
assert err == (
|
|
112
|
+
"Error: Plain syntax error: Link does_not_exist.md does not exist. "
|
|
113
|
+
"Linked resources are looked up relative to the following directories (highest to lowest precedence):\n"
|
|
114
|
+
f" 1. {cli_specs_dir}\n"
|
|
115
|
+
)
|
|
112
116
|
|
|
113
117
|
|
|
114
|
-
def test_check_binary_linked_resource(
|
|
115
|
-
monkeypatch.chdir(
|
|
118
|
+
def test_check_binary_linked_resource(cli_specs_dir, capsys, monkeypatch, tmp_path):
|
|
119
|
+
monkeypatch.chdir(tmp_path)
|
|
116
120
|
|
|
117
|
-
exit_code, out, err = _run_check(capsys, "binary_resource.plain")
|
|
121
|
+
exit_code, out, err = _run_check(capsys, os.path.join(cli_specs_dir, "binary_resource.plain"))
|
|
118
122
|
|
|
119
123
|
assert exit_code == 1
|
|
120
124
|
assert out == ""
|
|
121
125
|
assert err.startswith("Error: Referenced resource 'binary.bin' in module 'binary_resource' is a binary file.")
|
|
122
126
|
|
|
123
127
|
|
|
124
|
-
def test_check_base64_blob_linked_resource(
|
|
125
|
-
monkeypatch.chdir(
|
|
128
|
+
def test_check_base64_blob_linked_resource(cli_specs_dir, capsys, monkeypatch, tmp_path):
|
|
129
|
+
monkeypatch.chdir(tmp_path)
|
|
126
130
|
|
|
127
|
-
exit_code, out, err = _run_check(capsys, "base64_resource.plain")
|
|
131
|
+
exit_code, out, err = _run_check(capsys, os.path.join(cli_specs_dir, "base64_resource.plain"))
|
|
128
132
|
|
|
129
133
|
assert exit_code == 1
|
|
130
134
|
assert out == ""
|
|
@@ -134,10 +138,10 @@ def test_check_base64_blob_linked_resource(cli_data_dir, capsys, monkeypatch):
|
|
|
134
138
|
)
|
|
135
139
|
|
|
136
140
|
|
|
137
|
-
def test_check_invalid_linked_resource_in_required_module(
|
|
138
|
-
monkeypatch.chdir(
|
|
141
|
+
def test_check_invalid_linked_resource_in_required_module(cli_specs_dir, capsys, monkeypatch, tmp_path):
|
|
142
|
+
monkeypatch.chdir(tmp_path)
|
|
139
143
|
|
|
140
|
-
exit_code, out, err = _run_check(capsys, "requires_binary_resource_top.plain")
|
|
144
|
+
exit_code, out, err = _run_check(capsys, os.path.join(cli_specs_dir, "requires_binary_resource_top.plain"))
|
|
141
145
|
|
|
142
146
|
assert exit_code == 1
|
|
143
147
|
assert out == ""
|
|
@@ -146,24 +150,24 @@ def test_check_invalid_linked_resource_in_required_module(cli_data_dir, capsys,
|
|
|
146
150
|
)
|
|
147
151
|
|
|
148
152
|
|
|
149
|
-
def test_check_code_variable_with_two_values(
|
|
150
|
-
exit_code, out, err = _run_check(capsys, os.path.join(
|
|
153
|
+
def test_check_code_variable_with_two_values(cli_specs_dir, capsys):
|
|
154
|
+
exit_code, out, err = _run_check(capsys, os.path.join(cli_specs_dir, "code_variable_conflict.plain"))
|
|
151
155
|
|
|
152
156
|
assert exit_code == 1
|
|
153
157
|
assert out == ""
|
|
154
158
|
assert err == "Error: Code variable variable_name has multiple values: first and second\n"
|
|
155
159
|
|
|
156
160
|
|
|
157
|
-
def test_check_missing_plain_file(
|
|
158
|
-
exit_code, out, err = _run_check(capsys, os.path.join(
|
|
161
|
+
def test_check_missing_plain_file(cli_specs_dir, capsys):
|
|
162
|
+
exit_code, out, err = _run_check(capsys, os.path.join(cli_specs_dir, "does_not_exist.plain"))
|
|
159
163
|
|
|
160
164
|
assert exit_code == 1
|
|
161
165
|
assert out == ""
|
|
162
166
|
assert err == "Error: Module does not exist (does_not_exist).\n"
|
|
163
167
|
|
|
164
168
|
|
|
165
|
-
def test_check_wrong_extension(
|
|
166
|
-
exit_code, out, err = _run_check(capsys, os.path.join(
|
|
169
|
+
def test_check_wrong_extension(cli_specs_dir, capsys):
|
|
170
|
+
exit_code, out, err = _run_check(capsys, os.path.join(cli_specs_dir, "not_plain.md"))
|
|
167
171
|
|
|
168
172
|
assert exit_code == 1
|
|
169
173
|
assert out == ""
|
|
@@ -189,10 +193,10 @@ def test_check_empty_template_dir_is_ignored(tmp_path, capsys, monkeypatch):
|
|
|
189
193
|
assert err == "Error: Module does not exist (helper).\n"
|
|
190
194
|
|
|
191
195
|
|
|
192
|
-
def test_check_binary_linked_resource_in_acceptance_test(
|
|
193
|
-
monkeypatch.chdir(
|
|
196
|
+
def test_check_binary_linked_resource_in_acceptance_test(cli_specs_dir, capsys, monkeypatch, tmp_path):
|
|
197
|
+
monkeypatch.chdir(tmp_path)
|
|
194
198
|
|
|
195
|
-
exit_code, out, err = _run_check(capsys, "acceptance_test_binary_resource.plain")
|
|
199
|
+
exit_code, out, err = _run_check(capsys, os.path.join(cli_specs_dir, "acceptance_test_binary_resource.plain"))
|
|
196
200
|
|
|
197
201
|
assert exit_code == 1
|
|
198
202
|
assert out == ""
|
|
@@ -202,13 +206,13 @@ def test_check_binary_linked_resource_in_acceptance_test(cli_data_dir, capsys, m
|
|
|
202
206
|
|
|
203
207
|
|
|
204
208
|
@pytest.mark.parametrize("interrupted_function", ["check", "resolve_config_file"])
|
|
205
|
-
def test_check_interrupted_exits_130_without_traceback(
|
|
209
|
+
def test_check_interrupted_exits_130_without_traceback(cli_specs_dir, capsys, monkeypatch, interrupted_function):
|
|
206
210
|
def interrupt(*_):
|
|
207
211
|
raise KeyboardInterrupt
|
|
208
212
|
|
|
209
213
|
monkeypatch.setattr(cli, interrupted_function, interrupt)
|
|
210
214
|
|
|
211
|
-
exit_code = cli.main(["check", os.path.join(
|
|
215
|
+
exit_code = cli.main(["check", os.path.join(cli_specs_dir, "valid.plain")])
|
|
212
216
|
|
|
213
217
|
captured = capsys.readouterr()
|
|
214
218
|
assert exit_code == 130
|
|
@@ -317,8 +321,8 @@ def test_check_unreadable_config_is_usage_error(tmp_path, capsys):
|
|
|
317
321
|
assert "Error reading config file" in capsys.readouterr().err
|
|
318
322
|
|
|
319
323
|
|
|
320
|
-
def test_check_valid_module_prints_ok_line_with_file_as_given(
|
|
321
|
-
monkeypatch.chdir(
|
|
324
|
+
def test_check_valid_module_prints_ok_line_with_file_as_given(cli_specs_dir, capsys, monkeypatch):
|
|
325
|
+
monkeypatch.chdir(cli_specs_dir)
|
|
322
326
|
|
|
323
327
|
exit_code, out, err = _run_check(capsys, "valid.plain")
|
|
324
328
|
|
|
@@ -4,7 +4,7 @@ import tempfile
|
|
|
4
4
|
import pytest
|
|
5
5
|
|
|
6
6
|
from plain_parser.exceptions import UnsupportedBase64Content, UnsupportedResourceType
|
|
7
|
-
from plain_parser.loaders import MAX_BASE64_BLOB_LENGTH, load_linked_resources
|
|
7
|
+
from plain_parser.loaders import MAX_BASE64_BLOB_LENGTH, load_linked_resources, resolve_linked_resource
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
@pytest.fixture
|
|
@@ -96,3 +96,44 @@ def test_get_loaded_templates_missing_include_names_template(template_dir):
|
|
|
96
96
|
message = str(exc_info.value)
|
|
97
97
|
assert "nope.plain" in message
|
|
98
98
|
assert "--template-dir" not in message
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
def test_resolve_linked_resource_returns_none_when_missing(template_dir):
|
|
102
|
+
assert resolve_linked_resource([template_dir], "missing.md") is None
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
def test_resolve_linked_resource_first_dir_wins():
|
|
106
|
+
with tempfile.TemporaryDirectory() as first, tempfile.TemporaryDirectory() as second:
|
|
107
|
+
for d in (first, second):
|
|
108
|
+
with open(os.path.join(d, "notes.md"), "w") as f:
|
|
109
|
+
f.write("x")
|
|
110
|
+
|
|
111
|
+
assert resolve_linked_resource([first, second], "notes.md") == os.path.join(first, "notes.md")
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
def test_resolve_linked_resource_falls_back_to_later_dir():
|
|
115
|
+
with tempfile.TemporaryDirectory() as first, tempfile.TemporaryDirectory() as second:
|
|
116
|
+
with open(os.path.join(second, "notes.md"), "w") as f:
|
|
117
|
+
f.write("x")
|
|
118
|
+
|
|
119
|
+
assert resolve_linked_resource([first, second], "notes.md") == os.path.join(second, "notes.md")
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
def test_resolve_linked_resource_parent_relative_path():
|
|
123
|
+
with tempfile.TemporaryDirectory() as root:
|
|
124
|
+
spec_dir = os.path.join(root, "plain")
|
|
125
|
+
os.mkdir(spec_dir)
|
|
126
|
+
with open(os.path.join(root, "shared.md"), "w") as f:
|
|
127
|
+
f.write("x")
|
|
128
|
+
|
|
129
|
+
assert resolve_linked_resource([spec_dir], "../shared.md") == os.path.join(spec_dir, "../shared.md")
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
def test_resolve_linked_resource_directory_in_first_dir_shadows_file_in_second():
|
|
133
|
+
# Parity with codeplain: existence, not file-ness, decides the match.
|
|
134
|
+
with tempfile.TemporaryDirectory() as first, tempfile.TemporaryDirectory() as second:
|
|
135
|
+
os.mkdir(os.path.join(first, "notes.md"))
|
|
136
|
+
with open(os.path.join(second, "notes.md"), "w") as f:
|
|
137
|
+
f.write("x")
|
|
138
|
+
|
|
139
|
+
assert resolve_linked_resource([first, second], "notes.md") == os.path.join(first, "notes.md")
|
|
@@ -144,14 +144,30 @@ def test_invalid_absolute_link(get_test_data_path):
|
|
|
144
144
|
)
|
|
145
145
|
|
|
146
146
|
|
|
147
|
+
def test_missing_link_error_lists_searched_directories(get_test_data_path):
|
|
148
|
+
"""The error tells the user which directories were searched for the linked resource."""
|
|
149
|
+
plain_file_dir = get_test_data_path("data/plainfile")
|
|
150
|
+
|
|
151
|
+
with pytest.raises(PlainSyntaxError) as exception_info:
|
|
152
|
+
plain_file.plain_file_parser(
|
|
153
|
+
"plain_source_with_missing_link.plain",
|
|
154
|
+
[plain_file_dir],
|
|
155
|
+
)
|
|
156
|
+
|
|
157
|
+
message = str(exception_info.value)
|
|
158
|
+
assert "resources/missing_resource.yaml does not exist" in message
|
|
159
|
+
assert "highest to lowest precedence" in message
|
|
160
|
+
assert plain_file_dir in message
|
|
161
|
+
|
|
162
|
+
|
|
147
163
|
def test_reference_link_parsing(get_test_data_path):
|
|
148
164
|
_, plain_sections, _ = plain_file.plain_file_parser(
|
|
149
165
|
"task_manager_with_reference_links.plain",
|
|
150
166
|
[get_test_data_path("data/plainfile")],
|
|
151
167
|
)
|
|
152
168
|
asserted_resources = [
|
|
153
|
-
"
|
|
154
|
-
"
|
|
169
|
+
"task_list_ui_specification.yaml",
|
|
170
|
+
"add_new_task_modal_specification.yaml",
|
|
155
171
|
]
|
|
156
172
|
for functional_requirement in plain_sections[plain_spec.FUNCTIONAL_REQUIREMENTS]:
|
|
157
173
|
if "linked_resources" not in functional_requirement:
|
|
@@ -178,13 +194,36 @@ def test_reference_link_parsing(get_test_data_path):
|
|
|
178
194
|
assert plain_sections[plain_spec.FUNCTIONAL_REQUIREMENTS][1]["linked_resources"] == [
|
|
179
195
|
{
|
|
180
196
|
"text": "task_list_ui_specification.yaml",
|
|
181
|
-
"target": "
|
|
197
|
+
"target": "task_list_ui_specification.yaml",
|
|
198
|
+
}
|
|
199
|
+
]
|
|
200
|
+
assert plain_sections[plain_spec.FUNCTIONAL_REQUIREMENTS][2]["linked_resources"] == [
|
|
201
|
+
{
|
|
202
|
+
"text": "add_new_task_modal_specification.yaml",
|
|
203
|
+
"target": "add_new_task_modal_specification.yaml",
|
|
204
|
+
}
|
|
205
|
+
]
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
def test_reference_link_parsing_independent_of_working_directory(get_test_data_path, monkeypatch, tmp_path):
|
|
209
|
+
"""Linked resources resolve against the plain file's directory, not the invocation cwd."""
|
|
210
|
+
monkeypatch.chdir(tmp_path)
|
|
211
|
+
|
|
212
|
+
_, plain_sections, _ = plain_file.plain_file_parser(
|
|
213
|
+
"task_manager_with_reference_links.plain",
|
|
214
|
+
[get_test_data_path("data/plainfile")],
|
|
215
|
+
)
|
|
216
|
+
|
|
217
|
+
assert plain_sections[plain_spec.FUNCTIONAL_REQUIREMENTS][1]["linked_resources"] == [
|
|
218
|
+
{
|
|
219
|
+
"text": "task_list_ui_specification.yaml",
|
|
220
|
+
"target": "task_list_ui_specification.yaml",
|
|
182
221
|
}
|
|
183
222
|
]
|
|
184
223
|
assert plain_sections[plain_spec.FUNCTIONAL_REQUIREMENTS][2]["linked_resources"] == [
|
|
185
224
|
{
|
|
186
225
|
"text": "add_new_task_modal_specification.yaml",
|
|
187
|
-
"target": "
|
|
226
|
+
"target": "add_new_task_modal_specification.yaml",
|
|
188
227
|
}
|
|
189
228
|
]
|
|
190
229
|
|
|
File without changes
|
|
File without changes
|
{plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/.github/workflows/publish-dev-to-pypi.yml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/cli/acceptance_test_resource.plain
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/cli/code_variable_conflict.plain
RENAMED
|
File without changes
|
{plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/cli/code_variable_template.plain
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/imports/circular_imports_1.plain
RENAMED
|
File without changes
|
{plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/imports/circular_imports_2.plain
RENAMED
|
File without changes
|
{plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/imports/circular_imports_main.plain
RENAMED
|
File without changes
|
{plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/imports/diamond_import_1.plain
RENAMED
|
File without changes
|
{plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/imports/diamond_import_2.plain
RENAMED
|
File without changes
|
{plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/imports/diamond_import_common.plain
RENAMED
|
File without changes
|
{plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/imports/diamond_imports_main.plain
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/imports/non_existent_import.plain
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/requires/chain_fork_top.plain
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/requires/circular_requires_main.plain
RENAMED
|
File without changes
|
{plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/requires/circular_requires_sub.plain
RENAMED
|
File without changes
|
{plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/requires/diamond_requires_1.plain
RENAMED
|
File without changes
|
{plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/requires/diamond_requires_2.plain
RENAMED
|
File without changes
|
|
File without changes
|
{plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/requires/diamond_requires_main.plain
RENAMED
|
File without changes
|
{plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/requires/independent_requires_1.plain
RENAMED
|
File without changes
|
{plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/requires/independent_requires_2.plain
RENAMED
|
File without changes
|
|
File without changes
|
{plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/requires/invalid_ancestor_base.plain
RENAMED
|
File without changes
|
{plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/requires/invalid_ancestor_top.plain
RENAMED
|
File without changes
|
{plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/requires/non_existent_require.plain
RENAMED
|
File without changes
|
{plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/requires/normal_requires_1.plain
RENAMED
|
File without changes
|
{plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/requires/normal_requires_2.plain
RENAMED
|
File without changes
|
{plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/requires/normal_requires_common.plain
RENAMED
|
File without changes
|
{plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/requires/normal_requires_main.plain
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/templates/block_level_include.plain
RENAMED
|
File without changes
|
{plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/templates/code_variables.plain
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/templates/template_include.plain
RENAMED
|
File without changes
|
{plain_parser-0.1.2.dev3 → plain_parser-0.1.2.dev4}/tests/data/templates/test_hardest_problem.plain
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|