You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/extensions/score_metamodel/tests/rst/options/test_need_extends.rst
+33Lines changed: 33 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,15 @@
17
17
:status: invalid
18
18
19
19
20
+
.. stkh_req:: Test Req Extends 2
21
+
:id: stkh_req__test__need_extends_abc
22
+
:status: valid
23
+
24
+
25
+
.. feat_req:: Test Linkage Override
26
+
:id: feat_req__test__linkage_override
27
+
:satisfies: stkh_req__test__need_extends_1
28
+
20
29
21
30
.. Replacing of options that are already set is not allowed.
22
31
@@ -35,6 +44,30 @@
35
44
:safety: NO
36
45
37
46
47
+
#EXPECT-NOT: Replacing of options
48
+
49
+
.. needextend:: c.this_doc() and id == 'stkh_req__test__need_extends_1'
50
+
:safety: NO
51
+
52
+
53
+
# EXPECT: Replace or Delete action is not allowed via needextends.
54
+
55
+
.. needextend:: feat_req__test__linkage_override
56
+
:satisfies: stkh_req__test__need_extends_abc
57
+
58
+
59
+
#EXPECT: Replace or Delete action is not allowed via needextends.
60
+
61
+
.. needextend:: id == 'stkh_req__test__need_extends_1'
62
+
:-safety:
63
+
64
+
65
+
#EXPECT: Append action is not allowed via needextends on 'string type options'
66
+
67
+
.. needextend:: id == 'stkh_req__test__need_extends_1'
68
+
:+safety: YES
69
+
70
+
38
71
.. This will be activated once we have activated the c.this_doc() check aswell
39
72
.. #EXPECT: Potentially altering needs outside of the document is not allowed. Please add 'c.this_doc()' to the needextend to limit it to only needs in the same document
0 commit comments