Tests#
ID |
Title |
Status |
Validation |
Verify Req |
Verify Spc |
---|---|---|---|---|---|
Test Standard Sphinx Reference Resolution Success |
open |
||||
Test Unresolved Standard Sphinx Reference Handling |
open |
||||
Test Sphinx-Needs Reference Resolution Success |
open |
||||
Test Verbose Logging Functionality |
open |
Purpose: Verify that standard Sphinx references (:ref:, :doc:) within SVG xlink:href attributes are correctly resolved to their corresponding URIs when resolve_references is executed, primarily testing the specification for standard resolution. Implementation: Test Steps:
Expected Result: The xlink:href attribute of the SVG element is updated with the correct resolved URI, and appropriate logging occurs. |
Purpose: Verify that resolve_references logs a warning for any standard Sphinx reference in an SVG that cannot be resolved, ensuring robust error handling. Implementation: Test Steps:
Expected Result: The SVG file remains unchanged, and a warning is logged for the unresolved reference. |
Purpose: Verify that Sphinx-Needs references within SVG xlink:href attributes are correctly resolved when needs_build_json is enabled, validating the use case. Implementation: Test Steps:
Expected Result: The xlink:href attribute is correctly updated with the Sphinx-Needs URI, and an info message is logged. |
Purpose: Verify that verbose logging messages are generated as specified when sphinx_diagram_connect_verbose is True, confirming the requirement for configurable verbosity. Implementation: Test Steps:
Expected Result: Both the detailed href resolution log and the SVG update log messages are present. |