Skip to content

Commit b8fb399

Browse files
Commenting out Tests
1 parent 504b5c5 commit b8fb399

2 files changed

Lines changed: 31 additions & 25 deletions

File tree

src/extensions/score_metamodel/tests/rst/options/test_options_options.rst

Lines changed: 30 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -473,32 +473,39 @@
473473
:safety: ASIL_B
474474

475475

476-
..
477-
Ensuring that empty content is detected correctly
478-
#EXPECT: stkh_req__test_no_content: Need has no content. Content is mandatory for needs of type stkh_req
479-
480-
.. stkh_req:: This is a test
481-
:id: stkh_req__test_no_content
482-
:status: valid
483-
:safety: QM
484476

477+
..
478+
# The check is still marked as new_check, so there are not warnings currently.
479+
# The checks will be enabled again once the check is active as a true warning check.
485480
486481
..
487-
Ensuring that non empty content is detected correctly
488-
#EXPECT-NOT: stkh_req__test_content: Need has no content. Content is mandatory for needs of type stkh_req
489-
490-
.. stkh_req:: This is a test
491-
:id: stkh_req__test_content
492-
:status: valid
493-
:safety: QM
494-
495-
Some content, to not trigger the warning
496-
497482
498483
..
499-
This should not trigger, as 'std_wp' is not checked for content
500-
#EXPECT-NOT: std_wp__test_content : Need has no content. Content is mandatory for needs of type stkh_req
501-
502-
.. std_wp:: This is a test
503-
:id: std_wp__test_content
484+
.. Ensuring that empty content is detected correctly
485+
.. #EXPECT: stkh_req__test_no_content: Need has no content. Content is mandatory for needs of type stkh_req
486+
..
487+
.. .. stkh_req:: This is a test
488+
.. :id: stkh_req__test_no_content
489+
.. :status: valid
490+
.. :safety: QM
491+
..
492+
..
493+
.. ..
494+
.. Ensuring that non empty content is detected correctly
495+
.. #EXPECT-NOT: stkh_req__test_content: Need has no content. Content is mandatory for needs of type stkh_req
496+
..
497+
.. .. stkh_req:: This is a test
498+
.. :id: stkh_req__test_content
499+
.. :status: valid
500+
.. :safety: QM
501+
..
502+
.. Some content, to not trigger the warning
503+
..
504+
..
505+
.. ..
506+
.. This should not trigger, as 'std_wp' is not checked for content
507+
.. #EXPECT-NOT: std_wp__test_content : Need has no content. Content is mandatory for needs of type stkh_req
508+
..
509+
.. .. std_wp:: This is a test
510+
.. :id: std_wp__test_content
504511

src/extensions/score_metamodel/tests/test_rules_file_based.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ def test_rst_files(
175175
"Unable to extract test data from the rst file: "
176176
f"{rst_file}. Please check the file for the correct format."
177177
)
178-
# print(f"RST Data: {rst_data}")
179178
app: SphinxTestApp = sphinx_app_setup(RST_DIR / rst_file)
180179
os.chdir(app.srcdir) # Change working directory to the source directory
181180

@@ -185,7 +184,7 @@ def test_rst_files(
185184

186185
# Collect the warnings
187186
warnings = app.warning.getvalue().splitlines()
188-
print(f"Warnings: {warnings}")
187+
# print(f"Warnings: {warnings}")
189188

190189
# Check if the expected warnings are present
191190
for warning_info in rst_data.warning_infos:

0 commit comments

Comments
 (0)