Skip to content

Commit 758d938

Browse files
committed
Fix - minor
1 parent 2ed3ece commit 758d938

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

exts/coding_guidelines/rust_examples_test.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,22 @@
99
logger = logging.getLogger('sphinx')
1010

1111
class ExecuteRustExamples(SphinxError):
12-
category = "Integrity Check Error"
12+
category = "ExecuteRustExamples Error"
1313

14-
def execute_tests(app, env):
14+
def extract_execute_tests(app, env):
1515
"""
1616
Aggregate and test rust examples
1717
"""
1818
logger.debug("Testing examples")
1919
data = SphinxNeedsData(env)
2020
needs = data.get_needs_view()
2121

22-
required_fields = app.config.required_guideline_fields # Access the configured values
23-
2422
for key, value in needs.items():
25-
print("======++++++++")
26-
23+
print("+++++++++++++")
2724
# print(key, " -- ", value)
2825
if key.startswith("non_compl_ex") or key.startswith("compl_ex"):
29-
3026
text = value.get("content", "")
27+
# todo: seperate this and test it well
3128
match = re.search(
3229
r"\.\. code-block:: rust\s*\n\n((?: {2,}.*\n?)+)", text, re.DOTALL
3330
)

0 commit comments

Comments
 (0)