From 3a0f69dc2d0ea77b3af1effae649aaf5f3182426 Mon Sep 17 00:00:00 2001 From: Julio Castillo Date: Wed, 8 Feb 2023 21:11:38 +0100 Subject: [PATCH] Revert examples/conftest.py --- tests/examples/conftest.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/tests/examples/conftest.py b/tests/examples/conftest.py index bc0d3bff..4d3d85ee 100644 --- a/tests/examples/conftest.py +++ b/tests/examples/conftest.py @@ -68,22 +68,6 @@ def pytest_generate_tests(metafunc): name += f' {index}' ids.append(name) examples.append(Example(name, code, path, files[last_header])) - if isinstance(child, marko.block.HTMLBlock): - # parse tftest blocks from HTML blocks comment (user by - # blueprints to test without having to create wrapper - # modules) - code = child.children - if code.startswith('\n') - if index > 1: - name += f' {index}' - ids.append(name) - # TODO: examples in HTML comment blocks can't use - # tftest-file - examples.append(Example(name, code, path, {})) elif isinstance(child, marko.block.Heading): last_header = child.children[0].children index = 0