FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pyt/tests/__main__.py at 8githubScanRefactor · python-security/pyt · GitHub
python-security
pyt
Repository navigation
Code
Issues
26
(26)
Pull requests
2
(2)
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
pyt
/
tests
/
__main__.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
20 lines (14 loc) · 388 Bytes
Breadcrumbs
pyt
/
tests
/
__main__.py
Copy path
File metadata and controls
20 lines (14 loc) · 388 Bytes
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
from
unittest
import
TestLoader
,
TestSuite
,
TextTestRunner
from
.
run
import
check_files
test_suite
=
TestSuite
()
loader
=
TestLoader
()
suite
=
loader
.
discover
(
'.'
,
pattern
=
'*_test.py'
)
runner
=
TextTestRunner
(
verbosity
=
2
)
result
=
runner
.
run
(
suite
)
passed
=
check_files
()
if
result
.
wasSuccessful
()
and
passed
:
print
(
'Success'
)
exit
(
0
)
else
:
print
(
'Failure'
)
exit
(
1
)
Back
|
FazBrowse Home
|
New Git URL