File tree 1 file changed +16
-0
lines changed
1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 6
6
7
7
# Note loader and ignore are required arguments for unittest even if unused.
8
8
def load_tests (loader , tests , ignore ):
9
+ """
10
+ Locates and returns a collection of unittests in a TestSuite object
11
+ Parameters
12
+ ----------
13
+ loader :
14
+ A required but unused parameter.
15
+ tests :
16
+ A unittest TestSuite object for collecting the needed test cases.
17
+ ignore :
18
+ A required but unused parameter.
19
+ Returns
20
+ -------
21
+ tests :
22
+ A unittest TestSuite object that holds test cases.
23
+ """
9
24
for root , dirs , files in os .walk ("." ):
10
25
for f in files :
11
26
if f .endswith (".rst" ):
12
27
tests .addTests (
13
28
doctest .DocFileSuite (
29
+ # ELLIPSIS option tells doctest to ignore portions of the verification value.
14
30
os .path .join (root , f ), optionflags = doctest .ELLIPSIS
15
31
)
16
32
)
You can’t perform that action at this time.
0 commit comments