003 File Manager
Current Path:
/usr/local/lib/python3.8/unittest/test
usr
/
local
/
lib
/
python3.8
/
unittest
/
test
/
📁
..
📄
__init__.py
(584 B)
📄
__main__.py
(596 B)
📁
__pycache__
📄
_test_warnings.py
(2.25 KB)
📄
dummy.py
(50 B)
📄
support.py
(3.66 KB)
📄
test_assertions.py
(16.68 KB)
📄
test_async_case.py
(6.9 KB)
📄
test_break.py
(9.27 KB)
📄
test_case.py
(71.86 KB)
📄
test_discovery.py
(33.21 KB)
📄
test_functiontestcase.py
(5.41 KB)
📄
test_loader.py
(61.58 KB)
📄
test_program.py
(14.7 KB)
📄
test_result.py
(24.41 KB)
📄
test_runner.py
(35.9 KB)
📄
test_setups.py
(16.12 KB)
📄
test_skipping.py
(9.44 KB)
📄
test_suite.py
(14.83 KB)
📁
testmock
Editing: __init__.py
import os import sys import unittest here = os.path.dirname(__file__) loader = unittest.defaultTestLoader def suite(): suite = unittest.TestSuite() for fn in os.listdir(here): if fn.startswith("test") and fn.endswith(".py"): modname = "unittest.test." + fn[:-3] __import__(modname) module = sys.modules[modname] suite.addTest(loader.loadTestsFromModule(module)) suite.addTest(loader.loadTestsFromName('unittest.test.testmock')) return suite if __name__ == "__main__": unittest.main(defaultTest="suite")
Upload File
Create Folder