003 File Manager
Current Path:
/usr/local/lib/python3.8/unittest/test/testmock
usr
/
local
/
lib
/
python3.8
/
unittest
/
test
/
testmock
/
📁
..
📄
__init__.py
(465 B)
📄
__main__.py
(623 B)
📁
__pycache__
📄
support.py
(268 B)
📄
testasync.py
(36.46 KB)
📄
testcallable.py
(4.17 KB)
📄
testhelpers.py
(32.24 KB)
📄
testmagicmethods.py
(15.96 KB)
📄
testmock.py
(67.12 KB)
📄
testpatch.py
(55.25 KB)
📄
testsealable.py
(4.88 KB)
📄
testsentinel.py
(1.29 KB)
📄
testwith.py
(11.97 KB)
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.testmock, so the top-level is three notches up top_level_dir = os.path.dirname(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