OXIESEC PANEL
- Current Dir:
/
/
opt
/
gsutil
/
third_party
/
mock
/
mock
/
tests
Server IP: 2a02:4780:11:1594:0:ef5:22d7:a
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
06/08/2016 10:18:36 AM
rwxr-xr-x
📄
__init__.py
146 bytes
06/08/2016 10:18:36 AM
rw-r--r--
📄
__main__.py
623 bytes
06/08/2016 10:18:36 AM
rw-r--r--
📄
support.py
552 bytes
06/08/2016 10:18:36 AM
rw-r--r--
📄
testcallable.py
4.33 KB
06/08/2016 10:18:36 AM
rw-r--r--
📄
testhelpers.py
28.02 KB
06/08/2016 10:18:36 AM
rw-r--r--
📄
testmagicmethods.py
16 KB
06/08/2016 10:18:36 AM
rw-r--r--
📄
testmock.py
49.29 KB
06/08/2016 10:18:36 AM
rw-r--r--
📄
testpatch.py
55.03 KB
06/08/2016 10:18:36 AM
rw-r--r--
📄
testsentinel.py
976 bytes
06/08/2016 10:18:36 AM
rw-r--r--
📄
testwith.py
10.34 KB
06/08/2016 10:18:36 AM
rw-r--r--
Editing: __main__.py
Close
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()