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: __main__.py
import os import unittest def load_tests(loader, standard_tests, pattern): # top level directory cached on loader instance this_dir = os.path.dirname(__file__) pattern = pattern or "test_*.py" # We are inside unittest.test, so the top-level is two notches up top_level_dir = os.path.dirname(os.path.dirname(this_dir)) package_tests = loader.discover(start_dir=this_dir, pattern=pattern, top_level_dir=top_level_dir) standard_tests.addTests(package_tests) return standard_tests if __name__ == '__main__': unittest.main()
Upload File
Create Folder