Path: blob/main/tests/integration_tests/style/test_markdown.py
1958 views
# Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.1# SPDX-License-Identifier: Apache-2.02"""Tests for markdown style checks."""34import framework.utils as utils567def test_markdown_style():8"""Fail if there's misbehaving markdown style in the test system."""9# Get all *.md files from the project10md_files = utils.get_files_from(11find_path="..",12pattern="*.md",13exclude_names=["build"])1415# Assert if somehow no markdown files were found.16assert len(md_files) != 01718# Run commands19cmd = "mdl -c ../.mdlrc "20for fname in md_files:21cmd += fname + " "22_, output, _ = utils.run_cmd(cmd)23assert output == ""242526