def test_custom_template(rich_chart_path): from frigate import DOTFILE_NAME from frigate.gen import gen test_phrase = "rich chart" assert test_phrase in gen(rich_chart_path, "markdown")
def test_deps(deps_chart_path): from frigate.gen import gen docs = gen(deps_chart_path, "markdown") assert "<td>simple.image.repository</td>" in docs assert "<td>\n\n\"mainline\"\n\n</td>" in docs
def run(self): chart_path = os.path.join( os.getcwd( ), # TODO Need to find a better way to get the root of the docs self.arguments[0], ) output = ViewList(gen(chart_path, output_format="rst").split("\n")) node = nodes.section() node.document = self.state.document nested_parse_with_titles(self.state, output, node) return node.children
def test_load_pre_packaged_chart(deps_chart_path): from frigate.gen import gen docs = gen(deps_chart_path, "markdown", update=False) assert "image.repository" in docs assert "<td>\n\n\"nginx\"\n\n</td>" in docs