[e988c2]: / tests / spec / dummy / test_dummy.py

Download this file

60 lines (51 with data), 1.1 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
from ..tables import p
title = "Dummy section for testing spec generation"
text = "This section should not appear in the table of contents"
table_data = {
p: """
| b1 | b2
--+----+----
1 | T | T
2 | T |
3 | T | F
4 | | T
5 | |
6 | | F
7 | F | T
8 | F |
9 | F | F
""",
}
def test_function_with_docstring(spec_test):
"""this docstring should appear in the spec"""
spec_test(
table_data,
p.b1 & p.b2,
{
1: True,
2: None,
3: False,
4: None,
5: None,
6: False,
7: False,
8: False,
9: False,
},
)
def test_function_without_docstring(spec_test):
spec_test(
table_data,
p.b1 & p.b2,
{
1: True,
2: None,
3: False,
4: None,
5: None,
6: False,
7: False,
8: False,
9: False,
},
)