X7ROOT File Manager
Current Path:
/opt/gsutil/third_party/mock/mock/tests
opt
/
gsutil
/
third_party
/
mock
/
mock
/
tests
/
📁
..
📄
__init__.py
(146 B)
📄
__main__.py
(623 B)
📄
support.py
(552 B)
📄
testcallable.py
(4.33 KB)
📄
testhelpers.py
(28.02 KB)
📄
testmagicmethods.py
(16 KB)
📄
testmock.py
(49.29 KB)
📄
testpatch.py
(55.03 KB)
📄
testsentinel.py
(976 B)
📄
testwith.py
(10.34 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