From 98777ea96c19be5c09b1d8a38b76c042bd1d1323 Mon Sep 17 00:00:00 2001 From: Chris Sewell Date: Thu, 22 Feb 2024 12:51:16 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Remove=20`hidden`=20field=20from?= =?UTF-8?q?=20`extra=5Foptions`=20(#1124)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This field is never used, and is likely unintentional duplicate of `hide` (denoting a need that is hidden in the rendered documentation) --- docs/configuration.rst | 11 ---- docs/examples/needs.json | 2 - sphinx_needs/data.py | 1 - sphinx_needs/needs.py | 1 - tests/__snapshots__/test_basic_doc.ambr | 2 - tests/__snapshots__/test_export_id.ambr | 8 --- tests/__snapshots__/test_external.ambr | 5 -- tests/__snapshots__/test_import.ambr | 66 ------------------- .../__snapshots__/test_need_constraints.ambr | 8 --- tests/__snapshots__/test_needextend.ambr | 10 --- tests/__snapshots__/test_needs_builder.ambr | 12 ---- .../__snapshots__/test_needs_id_builder.ambr | 3 - tests/__snapshots__/test_needuml.ambr | 9 --- tests/__snapshots__/test_service_github.ambr | 4 -- .../needs_test_small.json | 3 - .../doc_needs_builder/custom_needs_test.json | 3 - .../needs.json | 3 - .../custom_needs_test.json | 3 - .../needs_test_small.json | 3 - .../needs_test_small.json | 3 - .../doc_test/doc_needsfile/needs_errors.json | 4 -- .../external_doc/needs_test_small.json | 3 - .../role_need_doc/needs_test_small.json | 3 - tests/test_needs_builder.py | 7 +- 24 files changed, 5 insertions(+), 172 deletions(-) diff --git a/docs/configuration.rst b/docs/configuration.rst index 627060ff9..f3e225d22 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -155,17 +155,6 @@ And use it like: :tags: important;complex; :impacts: really everything -Default value: - -.. code-block:: python - - {'hidden': directives.unchanged} - -The ``hidden`` option is a globally available option always hidden and used to easily execute :ref:`dynamic_functions`. - -Extra options automatically appear in needs, if a value is set. -By using :ref:`needs_hide_options` the output of such options can be hidden. - .. note:: To filter on these options in `needlist`, `needtable`, etc. you must use the :ref:`filter` option. diff --git a/docs/examples/needs.json b/docs/examples/needs.json index 7e4310701..e9099425b 100644 --- a/docs/examples/needs.json +++ b/docs/examples/needs.json @@ -33,7 +33,6 @@ "github": "", "has_dead_links": "", "has_forbidden_dead_links": "", - "hidden": "", "hours": "", "id": "test_req", "id_complete": "test_req", @@ -113,7 +112,6 @@ "github": "", "has_dead_links": "", "has_forbidden_dead_links": "", - "hidden": "", "hours": "", "id": "xyz_123", "id_complete": "xyz_123", diff --git a/sphinx_needs/data.py b/sphinx_needs/data.py index c29d21ca7..e8042d909 100644 --- a/sphinx_needs/data.py +++ b/sphinx_needs/data.py @@ -177,7 +177,6 @@ class NeedsInfoType(TypedDict): # default extra options # TODO these all default to "" which I don't think is good - hidden: str duration: str completion: str # constraints: str # this is already set in create_need diff --git a/sphinx_needs/needs.py b/sphinx_needs/needs.py index 3cfdc9f46..756acaea8 100644 --- a/sphinx_needs/needs.py +++ b/sphinx_needs/needs.py @@ -514,7 +514,6 @@ def prepare_env(app: Sphinx, env: BuildEnvironment, _docname: str) -> None: # Own extra options for option in [ - "hidden", "duration", "completion", "constraints", diff --git a/tests/__snapshots__/test_basic_doc.ambr b/tests/__snapshots__/test_basic_doc.ambr index 545c59cb8..c387bedd5 100644 --- a/tests/__snapshots__/test_basic_doc.ambr +++ b/tests/__snapshots__/test_basic_doc.ambr @@ -31,7 +31,6 @@ 'full_title': 'Test story', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'ST_001', 'id_prefix': '', 'is_external': False, @@ -99,7 +98,6 @@ 'full_title': 'No ID', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'US_38823', 'id_prefix': '', 'is_external': False, diff --git a/tests/__snapshots__/test_export_id.ambr b/tests/__snapshots__/test_export_id.ambr index 0c62e16ae..8c8be7c68 100644 --- a/tests/__snapshots__/test_export_id.ambr +++ b/tests/__snapshots__/test_export_id.ambr @@ -137,7 +137,6 @@ 'full_title': 'My requirement', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'REQ_001', 'id_prefix': '', 'is_external': False, @@ -213,7 +212,6 @@ 'full_title': 'My requirement 2', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'REQ_002', 'id_prefix': '', 'is_external': False, @@ -286,7 +284,6 @@ 'full_title': 'My requirement 3', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'REQ_003', 'id_prefix': '', 'is_external': False, @@ -359,7 +356,6 @@ 'full_title': 'My requirement 4', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'REQ_004', 'id_prefix': '', 'is_external': False, @@ -437,7 +433,6 @@ 'full_title': 'Req 5', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'REQ_005', 'id_prefix': '', 'is_external': False, @@ -541,7 +536,6 @@ 'full_title': 'Test of requirements', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'TEST_001', 'id_prefix': '', 'is_external': False, @@ -616,7 +610,6 @@ 'full_title': 'Test of requirements2', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'TEST_002', 'id_prefix': '', 'is_external': False, @@ -691,7 +684,6 @@ 'full_title': 'Test of requirements 5', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'TEST_003', 'id_prefix': '', 'is_external': False, diff --git a/tests/__snapshots__/test_external.ambr b/tests/__snapshots__/test_external.ambr index 558593df2..a71aaa3f1 100644 --- a/tests/__snapshots__/test_external.ambr +++ b/tests/__snapshots__/test_external.ambr @@ -31,7 +31,6 @@ 'full_title': 'TEST_01 DESCRIPTION', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'EXT_TEST_01', 'id_prefix': '', 'is_external': True, @@ -99,7 +98,6 @@ 'full_title': 'TEST_02 DESCRIPTION', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'EXT_TEST_02', 'id_prefix': '', 'is_external': True, @@ -170,7 +168,6 @@ 'full_title': 'Test requirement 1', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'REQ_1', 'id_prefix': '', 'is_external': False, @@ -238,7 +235,6 @@ 'full_title': 'Test specification 1', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'SPEC_1', 'id_prefix': '', 'is_external': False, @@ -308,7 +304,6 @@ 'full_title': 'Sub-Req', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'SUB_002', 'id_prefix': '', 'is_external': False, diff --git a/tests/__snapshots__/test_import.ambr b/tests/__snapshots__/test_import.ambr index b1de86adc..a75c2c772 100644 --- a/tests/__snapshots__/test_import.ambr +++ b/tests/__snapshots__/test_import.ambr @@ -31,7 +31,6 @@ 'full_title': 'Implementation for specification', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'IMPL_01', 'id_prefix': '', 'is_external': False, @@ -100,7 +99,6 @@ 'full_title': 'Specification of a requirement', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'OWN_ID_123', 'id_prefix': '', 'is_external': False, @@ -172,7 +170,6 @@ 'full_title': 'My first requirement', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'REQ_001', 'id_prefix': '', 'is_external': False, @@ -241,7 +238,6 @@ 'full_title': 'Test requirement 1', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'REQ_1', 'id_prefix': '', 'is_external': False, @@ -310,7 +306,6 @@ 'full_title': 'Sliced Bread', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'ROLES_REQ_1', 'id_prefix': '', 'is_external': False, @@ -378,7 +373,6 @@ 'full_title': 'Butter on Bread', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'ROLES_REQ_2', 'id_prefix': '', 'is_external': False, @@ -447,7 +441,6 @@ 'full_title': 'Requirement B', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'R_22EB2', 'id_prefix': '', 'is_external': False, @@ -517,7 +510,6 @@ 'full_title': 'Requirement A', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'R_2A9D0', 'id_prefix': '', 'is_external': False, @@ -591,7 +583,6 @@ 'full_title': 'My first requirement', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'R_F4722', 'id_prefix': '', 'is_external': False, @@ -662,7 +653,6 @@ 'full_title': 'Test specification 1', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'SPEC_1', 'id_prefix': '', 'is_external': False, @@ -731,7 +721,6 @@ 'full_title': 'Specification B', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'S_01A67', 'id_prefix': '', 'is_external': False, @@ -807,7 +796,6 @@ 'full_title': 'Spec for a requirement', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'S_503A1', 'id_prefix': '', 'is_external': False, @@ -878,7 +866,6 @@ 'full_title': 'Specification A', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'S_D70B0', 'id_prefix': '', 'is_external': False, @@ -948,7 +935,6 @@ 'full_title': 'TEST IMPORT DESCRIPTION', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'TEST_01', 'id_prefix': '', 'is_external': False, @@ -1016,7 +1002,6 @@ 'full_title': 'Test 1', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'T_5CCAA', 'id_prefix': '', 'is_external': False, @@ -1089,7 +1074,6 @@ 'full_title': 'Test for XY', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'T_C3893', 'id_prefix': '', 'is_external': False, @@ -1163,7 +1147,6 @@ 'full_title': 'Implementation for specification', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'collapsed_IMPL_01', 'id_prefix': '', 'is_external': False, @@ -1236,7 +1219,6 @@ 'full_title': 'Specification of a requirement', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'collapsed_OWN_ID_123', 'id_prefix': '', 'is_external': False, @@ -1312,7 +1294,6 @@ 'full_title': 'My first requirement', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'collapsed_REQ_001', 'id_prefix': '', 'is_external': False, @@ -1385,7 +1366,6 @@ 'full_title': 'Sliced Bread', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'collapsed_ROLES_REQ_1', 'id_prefix': '', 'is_external': False, @@ -1457,7 +1437,6 @@ 'full_title': 'Butter on Bread', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'collapsed_ROLES_REQ_2', 'id_prefix': '', 'is_external': False, @@ -1530,7 +1509,6 @@ 'full_title': 'Requirement B', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'collapsed_R_22EB2', 'id_prefix': '', 'is_external': False, @@ -1604,7 +1582,6 @@ 'full_title': 'Requirement A', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'collapsed_R_2A9D0', 'id_prefix': '', 'is_external': False, @@ -1682,7 +1659,6 @@ 'full_title': 'My first requirement', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'collapsed_R_F4722', 'id_prefix': '', 'is_external': False, @@ -1757,7 +1733,6 @@ 'full_title': 'Specification B', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'collapsed_S_01A67', 'id_prefix': '', 'is_external': False, @@ -1837,7 +1812,6 @@ 'full_title': 'Spec for a requirement', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'collapsed_S_503A1', 'id_prefix': '', 'is_external': False, @@ -1912,7 +1886,6 @@ 'full_title': 'Specification A', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'collapsed_S_D70B0', 'id_prefix': '', 'is_external': False, @@ -1986,7 +1959,6 @@ 'full_title': 'TEST IMPORT DESCRIPTION', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'collapsed_TEST_01', 'id_prefix': '', 'is_external': False, @@ -2058,7 +2030,6 @@ 'full_title': 'Test 1', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'collapsed_T_5CCAA', 'id_prefix': '', 'is_external': False, @@ -2135,7 +2106,6 @@ 'full_title': 'Test for XY', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'collapsed_T_C3893', 'id_prefix': '', 'is_external': False, @@ -2213,7 +2183,6 @@ 'full_title': 'Implementation for specification', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'hidden_IMPL_01', 'id_prefix': '', 'is_external': False, @@ -2285,7 +2254,6 @@ 'full_title': 'Specification of a requirement', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'hidden_OWN_ID_123', 'id_prefix': '', 'is_external': False, @@ -2360,7 +2328,6 @@ 'full_title': 'My first requirement', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'hidden_REQ_001', 'id_prefix': '', 'is_external': False, @@ -2432,7 +2399,6 @@ 'full_title': 'Sliced Bread', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'hidden_ROLES_REQ_1', 'id_prefix': '', 'is_external': False, @@ -2503,7 +2469,6 @@ 'full_title': 'Butter on Bread', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'hidden_ROLES_REQ_2', 'id_prefix': '', 'is_external': False, @@ -2575,7 +2540,6 @@ 'full_title': 'Requirement B', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'hidden_R_22EB2', 'id_prefix': '', 'is_external': False, @@ -2648,7 +2612,6 @@ 'full_title': 'Requirement A', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'hidden_R_2A9D0', 'id_prefix': '', 'is_external': False, @@ -2725,7 +2688,6 @@ 'full_title': 'My first requirement', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'hidden_R_F4722', 'id_prefix': '', 'is_external': False, @@ -2799,7 +2761,6 @@ 'full_title': 'Specification B', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'hidden_S_01A67', 'id_prefix': '', 'is_external': False, @@ -2878,7 +2839,6 @@ 'full_title': 'Spec for a requirement', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'hidden_S_503A1', 'id_prefix': '', 'is_external': False, @@ -2952,7 +2912,6 @@ 'full_title': 'Specification A', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'hidden_S_D70B0', 'id_prefix': '', 'is_external': False, @@ -3025,7 +2984,6 @@ 'full_title': 'TEST IMPORT DESCRIPTION', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'hidden_TEST_01', 'id_prefix': '', 'is_external': False, @@ -3095,7 +3053,6 @@ 'full_title': 'Test 1', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'hidden_T_5CCAA', 'id_prefix': '', 'is_external': False, @@ -3171,7 +3128,6 @@ 'full_title': 'Test for XY', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'hidden_T_C3893', 'id_prefix': '', 'is_external': False, @@ -3247,7 +3203,6 @@ 'full_title': 'AAA', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'small2_TEST_03', 'id_prefix': '', 'is_external': False, @@ -3315,7 +3270,6 @@ 'full_title': 'TEST_02 DESCRIPTION', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'small_TEST_02', 'id_prefix': '', 'is_external': False, @@ -3385,7 +3339,6 @@ 'full_title': 'TEST_02 DESCRIPTION', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'small_abs_path_TEST_02', 'id_prefix': '', 'is_external': False, @@ -3455,7 +3408,6 @@ 'full_title': 'TEST_01 DESCRIPTION', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'small_depr_rel_path_TEST_01', 'id_prefix': '', 'is_external': False, @@ -3523,7 +3475,6 @@ 'full_title': 'TEST_01 DESCRIPTION', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'small_rel_path_TEST_01', 'id_prefix': '', 'is_external': False, @@ -3591,7 +3542,6 @@ 'full_title': 'Implementation for specification', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'test_IMPL_01', 'id_prefix': '', 'is_external': False, @@ -3663,7 +3613,6 @@ 'full_title': 'Specification of a requirement', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'test_OWN_ID_123', 'id_prefix': '', 'is_external': False, @@ -3738,7 +3687,6 @@ 'full_title': 'My first requirement', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'test_REQ_001', 'id_prefix': '', 'is_external': False, @@ -3810,7 +3758,6 @@ 'full_title': 'Sliced Bread', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'test_ROLES_REQ_1', 'id_prefix': '', 'is_external': False, @@ -3881,7 +3828,6 @@ 'full_title': 'Butter on Bread', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'test_ROLES_REQ_2', 'id_prefix': '', 'is_external': False, @@ -3953,7 +3899,6 @@ 'full_title': 'Requirement B', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'test_R_22EB2', 'id_prefix': '', 'is_external': False, @@ -4026,7 +3971,6 @@ 'full_title': 'Requirement A', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'test_R_2A9D0', 'id_prefix': '', 'is_external': False, @@ -4103,7 +4047,6 @@ 'full_title': 'My first requirement', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'test_R_F4722', 'id_prefix': '', 'is_external': False, @@ -4177,7 +4120,6 @@ 'full_title': 'Specification B', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'test_S_01A67', 'id_prefix': '', 'is_external': False, @@ -4256,7 +4198,6 @@ 'full_title': 'Spec for a requirement', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'test_S_503A1', 'id_prefix': '', 'is_external': False, @@ -4330,7 +4271,6 @@ 'full_title': 'Specification A', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'test_S_D70B0', 'id_prefix': '', 'is_external': False, @@ -4403,7 +4343,6 @@ 'full_title': 'TEST IMPORT DESCRIPTION', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'test_TEST_01', 'id_prefix': '', 'is_external': False, @@ -4474,7 +4413,6 @@ 'full_title': 'Test 1', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'test_T_5CCAA', 'id_prefix': '', 'is_external': False, @@ -4550,7 +4488,6 @@ 'full_title': 'Test for XY', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'test_T_C3893', 'id_prefix': '', 'is_external': False, @@ -4636,7 +4573,6 @@ 'full_title': 'TEST_101 TITLE', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'hide': False, 'id': 'IMP_TEST_101', 'id_prefix': '', @@ -4715,7 +4651,6 @@ 'full_title': 'A Spec', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'hide': False, 'id': 'SPEC_1', 'id_prefix': '', @@ -4793,7 +4728,6 @@ 'full_title': 'A story', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'hide': False, 'id': 'STORY_1', 'id_prefix': '', diff --git a/tests/__snapshots__/test_need_constraints.ambr b/tests/__snapshots__/test_need_constraints.ambr index 76a68ebe6..431d4353c 100644 --- a/tests/__snapshots__/test_need_constraints.ambr +++ b/tests/__snapshots__/test_need_constraints.ambr @@ -31,7 +31,6 @@ 'full_title': 'test1', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'SECURITY_REQ', 'id_prefix': '', 'is_external': False, @@ -103,7 +102,6 @@ 'full_title': 'test2', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'SP_109F4', 'id_prefix': '', 'is_external': False, @@ -178,7 +176,6 @@ 'full_title': 'test3', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'SP_3EBFA', 'id_prefix': '', 'is_external': False, @@ -251,7 +248,6 @@ 'full_title': 'FAIL_01', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'SP_CA3FB', 'id_prefix': '', 'is_external': False, @@ -319,7 +315,6 @@ 'full_title': 'Command line interface', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'SP_TOO_001', 'id_prefix': '', 'is_external': False, @@ -394,7 +389,6 @@ 'full_title': 'CLI', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'SP_TOO_002', 'id_prefix': '', 'is_external': False, @@ -469,7 +463,6 @@ 'full_title': 'CLI', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'TEST_STYLE', 'id_prefix': '', 'is_external': False, @@ -541,7 +534,6 @@ 'full_title': 'CLI2', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'TEST_STYLE2', 'id_prefix': '', 'is_external': False, diff --git a/tests/__snapshots__/test_needextend.ambr b/tests/__snapshots__/test_needextend.ambr index 6ef1d8f6f..fd3df3987 100644 --- a/tests/__snapshots__/test_needextend.ambr +++ b/tests/__snapshots__/test_needextend.ambr @@ -31,7 +31,6 @@ 'full_title': 'Requirement 1', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'REQ_1', 'id_prefix': '', 'is_external': False, @@ -101,7 +100,6 @@ 'full_title': 'Requirement A 1', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'REQ_A_1', 'id_prefix': '', 'is_external': False, @@ -169,7 +167,6 @@ 'full_title': 'Requirement B 1', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'REQ_B_1', 'id_prefix': '', 'is_external': False, @@ -237,7 +234,6 @@ 'full_title': 'Requirement C 1', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'REQ_C_1', 'id_prefix': '', 'is_external': False, @@ -324,7 +320,6 @@ 'full_title': 'needextend Example 3', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'extend_test_003', 'id_prefix': '', 'is_external': False, @@ -396,7 +391,6 @@ 'full_title': 'needextend Example 4', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'extend_test_004', 'id_prefix': '', 'is_external': False, @@ -467,7 +461,6 @@ 'full_title': 'needextend Example 5', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'extend_test_005', 'id_prefix': '', 'is_external': False, @@ -535,7 +528,6 @@ 'full_title': 'needextend Example 6', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'extend_test_006', 'id_prefix': '', 'is_external': False, @@ -605,7 +597,6 @@ 'full_title': 'needextend Example 7', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'extend_test_007', 'id_prefix': '', 'is_external': False, @@ -676,7 +667,6 @@ 'full_title': 'needextend different pages test', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'extend_test_page', 'id_prefix': '', 'is_external': False, diff --git a/tests/__snapshots__/test_needs_builder.ambr b/tests/__snapshots__/test_needs_builder.ambr index e8ea71c72..29690a5ba 100644 --- a/tests/__snapshots__/test_needs_builder.ambr +++ b/tests/__snapshots__/test_needs_builder.ambr @@ -31,7 +31,6 @@ 'full_title': 'Test example', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'TC_001', 'id_prefix': '', 'is_external': False, @@ -99,7 +98,6 @@ 'full_title': 'Negative test example', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'TC_NEG_001', 'id_prefix': '', 'is_external': False, @@ -167,7 +165,6 @@ 'full_title': 'A story', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'US_63252', 'id_prefix': '', 'is_external': False, @@ -232,7 +229,6 @@ 'external_css': 'external_link', 'external_url': 'file:///home/daniel/workspace/sphinx/sphinxcontrib-needs/tests/doc_test/external_doc/__error__#TEST_01', 'full_title': 'TEST_01 DESCRIPTION', - 'hidden': '', 'id': 'TEST_01', 'id_complete': 'TEST_01', 'id_parent': 'TEST_01', @@ -285,7 +281,6 @@ 'external_css': 'external_link', 'external_url': 'file:///home/daniel/workspace/sphinx/sphinxcontrib-needs/tests/doc_test/external_doc/__error__#TEST_02', 'full_title': 'TEST_02 DESCRIPTION', - 'hidden': '', 'id': 'TEST_02', 'id_complete': 'TEST_02', 'id_parent': 'TEST_02', @@ -341,7 +336,6 @@ 'external_css': 'external_link', 'external_url': 'file:///home/daniel/workspace/sphinx/sphinxcontrib-needs/tests/doc_test/external_doc/__error__#TEST_03', 'full_title': 'AAA', - 'hidden': '', 'id': 'TEST_03', 'id_complete': 'TEST_03', 'id_parent': 'TEST_03', @@ -421,7 +415,6 @@ 'full_title': 'Test example', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'TC_001', 'id_prefix': '', 'is_external': False, @@ -489,7 +482,6 @@ 'full_title': 'Negative test example', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'TC_NEG_001', 'id_prefix': '', 'is_external': False, @@ -557,7 +549,6 @@ 'full_title': 'A story', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'US_63252', 'id_prefix': '', 'is_external': False, @@ -623,7 +614,6 @@ 'external_css': 'external_link', 'external_url': 'file:///home/daniel/workspace/sphinx/sphinxcontrib-needs/tests/doc_test/external_doc/__error__#TEST_01', 'full_title': 'TEST_01 DESCRIPTION', - 'hidden': '', 'id': 'TEST_01', 'id_complete': 'TEST_01', 'id_parent': 'TEST_01', @@ -676,7 +666,6 @@ 'external_css': 'external_link', 'external_url': 'file:///home/daniel/workspace/sphinx/sphinxcontrib-needs/tests/doc_test/external_doc/__error__#TEST_02', 'full_title': 'TEST_02 DESCRIPTION', - 'hidden': '', 'id': 'TEST_02', 'id_complete': 'TEST_02', 'id_parent': 'TEST_02', @@ -732,7 +721,6 @@ 'external_css': 'external_link', 'external_url': 'file:///home/daniel/workspace/sphinx/sphinxcontrib-needs/tests/doc_test/external_doc/__error__#TEST_03', 'full_title': 'AAA', - 'hidden': '', 'id': 'TEST_03', 'id_complete': 'TEST_03', 'id_parent': 'TEST_03', diff --git a/tests/__snapshots__/test_needs_id_builder.ambr b/tests/__snapshots__/test_needs_id_builder.ambr index 8eaa30b1f..0a9e9b568 100644 --- a/tests/__snapshots__/test_needs_id_builder.ambr +++ b/tests/__snapshots__/test_needs_id_builder.ambr @@ -32,7 +32,6 @@ 'full_title': 'Test example', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'TC_001', 'id_prefix': '', 'is_external': False, @@ -114,7 +113,6 @@ 'full_title': 'Negative test example', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'TC_NEG_001', 'id_prefix': '', 'is_external': False, @@ -196,7 +194,6 @@ 'full_title': 'A story', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'US_63252', 'id_prefix': '', 'is_external': False, diff --git a/tests/__snapshots__/test_needuml.ambr b/tests/__snapshots__/test_needuml.ambr index d18ba08a9..0c322e9fe 100644 --- a/tests/__snapshots__/test_needuml.ambr +++ b/tests/__snapshots__/test_needuml.ambr @@ -34,7 +34,6 @@ 'full_title': 'Test component', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'hide': False, 'id': 'COMP_001', 'id_complete': 'COMP_001', @@ -114,7 +113,6 @@ 'full_title': 'Test interface', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'hide': False, 'id': 'INT_001', 'id_complete': 'INT_001', @@ -227,7 +225,6 @@ 'full_title': 'Test interface2', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'hide': False, 'id': 'INT_002', 'id_complete': 'INT_002', @@ -339,7 +336,6 @@ 'full_title': 'Test interface3', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'hide': False, 'id': 'INT_003', 'id_complete': 'INT_003', @@ -466,7 +462,6 @@ 'full_title': 'Test interface4', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'hide': False, 'id': 'INT_004', 'id_complete': 'INT_004', @@ -552,7 +547,6 @@ 'full_title': 'Test Product', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'hide': False, 'id': 'PROD_001', 'id_complete': 'PROD_001', @@ -632,7 +626,6 @@ 'full_title': 'Test story', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'hide': False, 'id': 'ST_001', 'id_complete': 'ST_001', @@ -712,7 +705,6 @@ 'full_title': 'Test story2', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'hide': False, 'id': 'ST_002', 'id_complete': 'ST_002', @@ -801,7 +793,6 @@ 'full_title': 'Test System', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'hide': False, 'id': 'SYS_001', 'id_complete': 'SYS_001', diff --git a/tests/__snapshots__/test_service_github.ambr b/tests/__snapshots__/test_service_github.ambr index 1dbcffc06..5ae15c63d 100644 --- a/tests/__snapshots__/test_service_github.ambr +++ b/tests/__snapshots__/test_service_github.ambr @@ -34,7 +34,6 @@ 'full_title': 'Bump actions/cache from 3 to 4 (#1092)', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'GITHUB_050bec', 'id_prefix': '', 'is_external': False, @@ -109,7 +108,6 @@ 'full_title': 'needreport usage should count needs in post-process', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'GITHUB_1110', 'id_prefix': '', 'is_external': False, @@ -207,7 +205,6 @@ 'full_title': '๐Ÿ‘Œ Capture `only` expressions for each need', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'GITHUB_1112', 'id_prefix': '', 'is_external': False, @@ -289,7 +286,6 @@ 'full_title': '๐Ÿงช Add test for `needreport` directive (#1105)', 'has_dead_links': False, 'has_forbidden_dead_links': False, - 'hidden': '', 'id': 'GITHUB_6abd38', 'id_prefix': '', 'is_external': False, diff --git a/tests/doc_test/doc_needimport_noindex/needs_test_small.json b/tests/doc_test/doc_needimport_noindex/needs_test_small.json index 8cc54de16..ab739d2aa 100644 --- a/tests/doc_test/doc_needimport_noindex/needs_test_small.json +++ b/tests/doc_test/doc_needimport_noindex/needs_test_small.json @@ -19,7 +19,6 @@ "external_css": "external_link", "external_url": "file:///home/daniel/workspace/sphinx/sphinxcontrib-needs/tests/doc_test/external_doc/__error__#TEST_01", "full_title": "TEST_01 DESCRIPTION", - "hidden": "", "id": "TEST_01", "id_complete": "TEST_01", "id_parent": "TEST_01", @@ -65,7 +64,6 @@ "external_css": "external_link", "external_url": "file:///home/daniel/workspace/sphinx/sphinxcontrib-needs/tests/doc_test/external_doc/__error__#TEST_02", "full_title": "TEST_02 DESCRIPTION", - "hidden": "", "id": "TEST_02", "id_complete": "TEST_02", "id_parent": "TEST_02", @@ -113,7 +111,6 @@ "external_css": "external_link", "external_url": "file:///home/daniel/workspace/sphinx/sphinxcontrib-needs/tests/doc_test/external_doc/__error__#TEST_03", "full_title": "AAA", - "hidden": "", "id": "TEST_03", "id_complete": "TEST_03", "id_parent": "TEST_03", diff --git a/tests/doc_test/doc_needs_builder/custom_needs_test.json b/tests/doc_test/doc_needs_builder/custom_needs_test.json index 3be0ffb98..dd9c6b49f 100644 --- a/tests/doc_test/doc_needs_builder/custom_needs_test.json +++ b/tests/doc_test/doc_needs_builder/custom_needs_test.json @@ -19,7 +19,6 @@ "external_css": "external_link", "external_url": "file:///home/daniel/workspace/sphinx/sphinxcontrib-needs/tests/doc_test/external_doc/__error__#TEST_01", "full_title": "TEST_01 DESCRIPTION", - "hidden": "", "id": "TEST_01", "id_complete": "TEST_01", "id_parent": "TEST_01", @@ -65,7 +64,6 @@ "external_css": "external_link", "external_url": "file:///home/daniel/workspace/sphinx/sphinxcontrib-needs/tests/doc_test/external_doc/__error__#TEST_02", "full_title": "TEST_02 DESCRIPTION", - "hidden": "", "id": "TEST_02", "id_complete": "TEST_02", "id_parent": "TEST_02", @@ -117,7 +115,6 @@ "external_css": "external_link", "external_url": "file:///home/daniel/workspace/sphinx/sphinxcontrib-needs/tests/doc_test/external_doc/__error__#TEST_03", "full_title": "AAA", - "hidden": "", "id": "TEST_03", "id_complete": "TEST_03", "id_parent": "TEST_03", diff --git a/tests/doc_test/doc_needs_builder_negative_tests/needs.json b/tests/doc_test/doc_needs_builder_negative_tests/needs.json index 3be0ffb98..dd9c6b49f 100644 --- a/tests/doc_test/doc_needs_builder_negative_tests/needs.json +++ b/tests/doc_test/doc_needs_builder_negative_tests/needs.json @@ -19,7 +19,6 @@ "external_css": "external_link", "external_url": "file:///home/daniel/workspace/sphinx/sphinxcontrib-needs/tests/doc_test/external_doc/__error__#TEST_01", "full_title": "TEST_01 DESCRIPTION", - "hidden": "", "id": "TEST_01", "id_complete": "TEST_01", "id_parent": "TEST_01", @@ -65,7 +64,6 @@ "external_css": "external_link", "external_url": "file:///home/daniel/workspace/sphinx/sphinxcontrib-needs/tests/doc_test/external_doc/__error__#TEST_02", "full_title": "TEST_02 DESCRIPTION", - "hidden": "", "id": "TEST_02", "id_complete": "TEST_02", "id_parent": "TEST_02", @@ -117,7 +115,6 @@ "external_css": "external_link", "external_url": "file:///home/daniel/workspace/sphinx/sphinxcontrib-needs/tests/doc_test/external_doc/__error__#TEST_03", "full_title": "AAA", - "hidden": "", "id": "TEST_03", "id_complete": "TEST_03", "id_parent": "TEST_03", diff --git a/tests/doc_test/doc_needs_builder_parallel/custom_needs_test.json b/tests/doc_test/doc_needs_builder_parallel/custom_needs_test.json index 3be0ffb98..dd9c6b49f 100644 --- a/tests/doc_test/doc_needs_builder_parallel/custom_needs_test.json +++ b/tests/doc_test/doc_needs_builder_parallel/custom_needs_test.json @@ -19,7 +19,6 @@ "external_css": "external_link", "external_url": "file:///home/daniel/workspace/sphinx/sphinxcontrib-needs/tests/doc_test/external_doc/__error__#TEST_01", "full_title": "TEST_01 DESCRIPTION", - "hidden": "", "id": "TEST_01", "id_complete": "TEST_01", "id_parent": "TEST_01", @@ -65,7 +64,6 @@ "external_css": "external_link", "external_url": "file:///home/daniel/workspace/sphinx/sphinxcontrib-needs/tests/doc_test/external_doc/__error__#TEST_02", "full_title": "TEST_02 DESCRIPTION", - "hidden": "", "id": "TEST_02", "id_complete": "TEST_02", "id_parent": "TEST_02", @@ -117,7 +115,6 @@ "external_css": "external_link", "external_url": "file:///home/daniel/workspace/sphinx/sphinxcontrib-needs/tests/doc_test/external_doc/__error__#TEST_03", "full_title": "AAA", - "hidden": "", "id": "TEST_03", "id_complete": "TEST_03", "id_parent": "TEST_03", diff --git a/tests/doc_test/doc_needs_external_needs/needs_test_small.json b/tests/doc_test/doc_needs_external_needs/needs_test_small.json index 8cc54de16..ab739d2aa 100644 --- a/tests/doc_test/doc_needs_external_needs/needs_test_small.json +++ b/tests/doc_test/doc_needs_external_needs/needs_test_small.json @@ -19,7 +19,6 @@ "external_css": "external_link", "external_url": "file:///home/daniel/workspace/sphinx/sphinxcontrib-needs/tests/doc_test/external_doc/__error__#TEST_01", "full_title": "TEST_01 DESCRIPTION", - "hidden": "", "id": "TEST_01", "id_complete": "TEST_01", "id_parent": "TEST_01", @@ -65,7 +64,6 @@ "external_css": "external_link", "external_url": "file:///home/daniel/workspace/sphinx/sphinxcontrib-needs/tests/doc_test/external_doc/__error__#TEST_02", "full_title": "TEST_02 DESCRIPTION", - "hidden": "", "id": "TEST_02", "id_complete": "TEST_02", "id_parent": "TEST_02", @@ -113,7 +111,6 @@ "external_css": "external_link", "external_url": "file:///home/daniel/workspace/sphinx/sphinxcontrib-needs/tests/doc_test/external_doc/__error__#TEST_03", "full_title": "AAA", - "hidden": "", "id": "TEST_03", "id_complete": "TEST_03", "id_parent": "TEST_03", diff --git a/tests/doc_test/doc_needs_external_needs_with_target_url/needs_test_small.json b/tests/doc_test/doc_needs_external_needs_with_target_url/needs_test_small.json index 8cc54de16..ab739d2aa 100644 --- a/tests/doc_test/doc_needs_external_needs_with_target_url/needs_test_small.json +++ b/tests/doc_test/doc_needs_external_needs_with_target_url/needs_test_small.json @@ -19,7 +19,6 @@ "external_css": "external_link", "external_url": "file:///home/daniel/workspace/sphinx/sphinxcontrib-needs/tests/doc_test/external_doc/__error__#TEST_01", "full_title": "TEST_01 DESCRIPTION", - "hidden": "", "id": "TEST_01", "id_complete": "TEST_01", "id_parent": "TEST_01", @@ -65,7 +64,6 @@ "external_css": "external_link", "external_url": "file:///home/daniel/workspace/sphinx/sphinxcontrib-needs/tests/doc_test/external_doc/__error__#TEST_02", "full_title": "TEST_02 DESCRIPTION", - "hidden": "", "id": "TEST_02", "id_complete": "TEST_02", "id_parent": "TEST_02", @@ -113,7 +111,6 @@ "external_css": "external_link", "external_url": "file:///home/daniel/workspace/sphinx/sphinxcontrib-needs/tests/doc_test/external_doc/__error__#TEST_03", "full_title": "AAA", - "hidden": "", "id": "TEST_03", "id_complete": "TEST_03", "id_parent": "TEST_03", diff --git a/tests/doc_test/doc_needsfile/needs_errors.json b/tests/doc_test/doc_needsfile/needs_errors.json index 2af544e08..061b7136e 100644 --- a/tests/doc_test/doc_needsfile/needs_errors.json +++ b/tests/doc_test/doc_needsfile/needs_errors.json @@ -31,7 +31,6 @@ "full_title": "Analysis issue", "has_dead_links": "", "has_forbidden_dead_links": "", - "hidden": "", "hours": "", "id": "ACT_ANALYSIS", "id_complete": "ACT_ANALYSIS", @@ -106,7 +105,6 @@ "full_title": "Barks for support", "has_dead_links": "", "has_forbidden_dead_links": "", - "hidden": "", "hours": "", "id": "ACT_BARKS", "id_complete": "ACT_BARKS", @@ -183,7 +181,6 @@ "full_title": "Find & Report bug", "has_dead_links": "", "has_forbidden_dead_links": "", - "hidden": "", "hours": "", "id": "ACT_BUG", "id_complete": "ACT_BUG", @@ -258,7 +255,6 @@ "full_title": "Analyse bug", "has_dead_links": "", "has_forbidden_dead_links": "", - "hidden": "", "hours": "", "id": "ACT_BUG_ANALYSE", "id_complete": "ACT_BUG_ANALYSE", diff --git a/tests/doc_test/external_doc/needs_test_small.json b/tests/doc_test/external_doc/needs_test_small.json index 2af28027b..5ac982674 100644 --- a/tests/doc_test/external_doc/needs_test_small.json +++ b/tests/doc_test/external_doc/needs_test_small.json @@ -19,7 +19,6 @@ "external_css": "external_link", "external_url": "file:///home/daniel/workspace/sphinx/sphinxcontrib-needs/tests/doc_test/external_doc/__error__#TEST_01", "full_title": "TEST_01 DESCRIPTION", - "hidden": "", "id": "TEST_01", "id_complete": "TEST_01", "id_parent": "TEST_01", @@ -65,7 +64,6 @@ "external_css": "external_link", "external_url": "file:///home/daniel/workspace/sphinx/sphinxcontrib-needs/tests/doc_test/external_doc/__error__#TEST_02", "full_title": "TEST_02 DESCRIPTION", - "hidden": "", "id": "TEST_02", "id_complete": "TEST_02", "id_parent": "TEST_02", @@ -117,7 +115,6 @@ "external_css": "external_link", "external_url": "file:///home/daniel/workspace/sphinx/sphinxcontrib-needs/tests/doc_test/external_doc/__error__#TEST_03", "full_title": "AAA", - "hidden": "", "id": "TEST_03", "id_complete": "TEST_03", "id_parent": "TEST_03", diff --git a/tests/doc_test/role_need_doc/needs_test_small.json b/tests/doc_test/role_need_doc/needs_test_small.json index 1226f8ad7..a0192cec3 100644 --- a/tests/doc_test/role_need_doc/needs_test_small.json +++ b/tests/doc_test/role_need_doc/needs_test_small.json @@ -19,7 +19,6 @@ "external_css": "external_link", "external_url": "file:///home/daniel/workspace/sphinx/sphinxcontrib-needs/tests/doc_test/external_doc/__error__#TEST_01", "full_title": "TEST_01 DESCRIPTION", - "hidden": "", "id": "TEST_01", "id_complete": "TEST_01", "id_parent": "TEST_01", @@ -65,7 +64,6 @@ "external_css": "external_link", "external_url": "file:///home/daniel/workspace/sphinx/sphinxcontrib-needs/tests/doc_test/external_doc/__error__#TEST_02", "full_title": "TEST_02 DESCRIPTION", - "hidden": "", "id": "TEST_02", "id_complete": "TEST_02", "id_parent": "TEST_02", @@ -117,7 +115,6 @@ "external_css": "external_link", "external_url": "file:///home/daniel/workspace/sphinx/sphinxcontrib-needs/tests/doc_test/external_doc/__error__#TEST_03", "full_title": "AAA", - "hidden": "", "id": "TEST_03", "id_complete": "TEST_03", "id_parent": "TEST_03", diff --git a/tests/test_needs_builder.py b/tests/test_needs_builder.py index 61fa2c1d5..a53b568c8 100644 --- a/tests/test_needs_builder.py +++ b/tests/test_needs_builder.py @@ -77,9 +77,12 @@ def test_needs_html_and_json(test_app): srcdir = app.srcdir build_dir = os.path.join(app.outdir, "../needs") - subprocess.run( - ["sphinx-build", "-b", "needs", srcdir, build_dir], capture_output=True + print(build_dir) + output = subprocess.run( + ["python", "-m", "sphinx.cmd.build", "-b", "needs", srcdir, build_dir], + capture_output=True, ) + print(output) needs_json_path_2 = os.path.join(build_dir, "needs.json") assert os.path.exists(needs_json_path_2)