FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
typeshed/stdlib/unittest/loader.pyi at main · python/typeshed · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
python
/
typeshed
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
2.1k
Star
5.1k
Code
Issues
212
Pull requests
155
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
typeshed
/
stdlib
/
unittest
/
loader.pyi
Copy path
More file actions
More file actions
Latest commit
History
History
History
55 lines (49 loc) · 2.41 KB
Breadcrumbs
typeshed
/
stdlib
/
unittest
/
loader.pyi
Copy path
File metadata and controls
55 lines (49 loc) · 2.41 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
import
sys
import
unittest
.
case
import
unittest
.
suite
from
collections
.
abc
import
Callable
,
Sequence
from
re
import
Pattern
from
types
import
ModuleType
from
typing
import
Any
,
Final
,
TypeAlias
from
typing_extensions
import
deprecated
_SortComparisonMethod
:
TypeAlias
=
Callable
[[
str
,
str
],
int
]
_SuiteClass
:
TypeAlias
=
Callable
[[
list
[
unittest
.
case
.
TestCase
]],
unittest
.
suite
.
TestSuite
]
VALID_MODULE_NAME
:
Final
[
Pattern
[
str
]]
class
TestLoader
:
errors
:
list
[
type
[
BaseException
]]
testMethodPrefix
:
str
sortTestMethodsUsing
:
_SortComparisonMethod
testNamePatterns
:
list
[
str
]
|
None
suiteClass
:
_SuiteClass
def
loadTestsFromTestCase
(
self
,
testCaseClass
:
type
[
unittest
.
case
.
TestCase
])
->
unittest
.
suite
.
TestSuite
: ...
if
sys
.
version_info
>=
(
3
,
12
):
def
loadTestsFromModule
(
self
,
module
:
ModuleType
,
*
,
pattern
:
str
|
None
=
None
)
->
unittest
.
suite
.
TestSuite
: ...
else
:
def
loadTestsFromModule
(
self
,
module
:
ModuleType
,
*
args
:
Any
,
pattern
:
str
|
None
=
None
)
->
unittest
.
suite
.
TestSuite
: ...
def
loadTestsFromName
(
self
,
name
:
str
,
module
:
ModuleType
|
None
=
None
)
->
unittest
.
suite
.
TestSuite
: ...
def
loadTestsFromNames
(
self
,
names
:
Sequence
[
str
],
module
:
ModuleType
|
None
=
None
)
->
unittest
.
suite
.
TestSuite
: ...
def
getTestCaseNames
(
self
,
testCaseClass
:
type
[
unittest
.
case
.
TestCase
])
->
Sequence
[
str
]: ...
def
discover
(
self
,
start_dir
:
str
,
pattern
:
str
=
"test*.py"
,
top_level_dir
:
str
|
None
=
None
)
->
unittest
.
suite
.
TestSuite
: ...
def
_match_path
(
self
,
path
:
str
,
full_path
:
str
,
pattern
:
str
)
->
bool
: ...
defaultTestLoader
:
TestLoader
if
sys
.
version_info
<
(
3
,
13
):
@
deprecated
(
"Deprecated; removed in Python 3.13."
)
def
getTestCaseNames
(
testCaseClass
:
type
[
unittest
.
case
.
TestCase
],
prefix
:
str
,
sortUsing
:
_SortComparisonMethod
=
...,
testNamePatterns
:
list
[
str
]
|
None
=
None
,
)
->
Sequence
[
str
]: ...
@
deprecated
(
"Deprecated; removed in Python 3.13."
)
def
makeSuite
(
testCaseClass
:
type
[
unittest
.
case
.
TestCase
],
prefix
:
str
=
"test"
,
sortUsing
:
_SortComparisonMethod
=
...,
suiteClass
:
_SuiteClass
=
...,
)
->
unittest
.
suite
.
TestSuite
: ...
@
deprecated
(
"Deprecated; removed in Python 3.13."
)
def
findTestCases
(
module
:
ModuleType
,
prefix
:
str
=
"test"
,
sortUsing
:
_SortComparisonMethod
=
...,
suiteClass
:
_SuiteClass
=
...
)
->
unittest
.
suite
.
TestSuite
: ...
Back
|
FazBrowse Home
|
New Git URL