Skip to content

Commit

Permalink
Fix documentation bug for missing local file (#1230)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fanjia-Yan authored Apr 25, 2023
1 parent e918800 commit e739720
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions regression_tests/tests/gitbook/test_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,22 @@ class SnippetExec(NamedTuple):
"operators/specifying-a-requirements.txt.md", # Requires specific requirements.txt
]

blacklist_snippets = {}
blacklist_snippets = {
"parameters.md": [
'from aqueduct.constants.enums import ArtifactType\nlocal_data = client.create_param(\n '\
'name ="table_data", \n '\
'default="path/to/data.csv",\n '\
'use_local=True,\n '\
'as_type=ArtifactType.TABLE,\n '\
'format="csv",\n ) '
,
'client.publish_flow(\n '\
'name = "local_data_workflow",\n '\
'artifacts = [local_data, ...],\n '\
'use_local = True,\n ) '
,
]
}


def get_code(page: str) -> List[str]:
Expand Down Expand Up @@ -175,7 +190,7 @@ def remove_skipped_snippets(snippets):

if should_skip_file(file_name):
continue

snippets = remove_skipped_snippets(get_code(file))

# If we still have code to run, run it.
Expand Down

0 comments on commit e739720

Please sign in to comment.