Skip to content

Commit e08449d

Browse files
authored
Remove curated examples: they're obsolete. (#59)
1 parent f917a87 commit e08449d

File tree

2 files changed

+0
-92
lines changed

2 files changed

+0
-92
lines changed

aws_doc_sdk_examples_tools/config/curated_example_schema.yaml

Lines changed: 0 additions & 25 deletions
This file was deleted.

aws_doc_sdk_examples_tools/metadata_test.py

Lines changed: 0 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -450,73 +450,6 @@ def test_parse_cross():
450450
assert actual[0] == example
451451

452452

453-
CURATED = """
454-
s3_autogluon_tabular_with_sagemaker_pipelines:
455-
title: AutoGluon Tabular with SageMaker Pipelines
456-
title_abbrev: AutoGluon Tabular with SageMaker Pipelines
457-
synopsis: use AutoGluon with SageMaker Pipelines.
458-
source_key: amazon-sagemaker-examples
459-
category: Curated examples
460-
languages:
461-
Java:
462-
versions:
463-
- sdk_version: 2
464-
block_content: block.xml
465-
services:
466-
s3:
467-
"""
468-
469-
470-
def test_parse_curated():
471-
meta = yaml.safe_load(CURATED)
472-
actual, errors = parse(
473-
Path("curated.yaml"),
474-
meta,
475-
SDKS,
476-
SERVICES,
477-
set(["block.xml"]),
478-
DOC_GEN.validation,
479-
)
480-
assert len(errors) == 0
481-
assert len(actual) == 1
482-
language = Language(
483-
name="Java",
484-
property="java",
485-
versions=[Version(sdk_version=2, block_content="block.xml")],
486-
)
487-
example = Example(
488-
id="s3_autogluon_tabular_with_sagemaker_pipelines",
489-
file=Path("curated.yaml"),
490-
category="Curated examples",
491-
title="AutoGluon Tabular with SageMaker Pipelines",
492-
title_abbrev="AutoGluon Tabular with SageMaker Pipelines",
493-
source_key="amazon-sagemaker-examples",
494-
languages={"Java": language},
495-
services={"s3": set()},
496-
doc_filenames=DocFilenames(
497-
service_pages={
498-
"s3": make_doc_link(
499-
stub="s3_example_s3_autogluon_tabular_with_sagemaker_pipelines_section"
500-
),
501-
},
502-
sdk_pages={
503-
"java": {
504-
2: SDKPageVersion(
505-
actions_scenarios={
506-
"s3": make_doc_link(
507-
stub="java_2_s3_code_examples", anchor="scenarios"
508-
),
509-
}
510-
)
511-
}
512-
},
513-
),
514-
synopsis="use AutoGluon with SageMaker Pipelines.",
515-
)
516-
517-
assert actual[0] == example
518-
519-
520453
def test_verify_load_successful():
521454
actual, errors = load(
522455
Path(__file__).parent / "test_resources/valid_metadata.yaml",

0 commit comments

Comments
 (0)