Searched refs:mock_spec (Results 1 – 8 of 8) sorted by relevance
/third_party/python/Lib/test/test_importlib/import_/ |
D | test_fromlist.py | 20 with util.mock_spec('pkg.__init__', 'pkg.module') as importer: 27 with util.mock_spec('pkg.__init__', 'pkg.module')as importer: 55 with util.mock_spec('module') as importer: 62 with util.mock_spec('module') as importer: 70 with util.mock_spec('pkg.__init__', 'pkg.module') as importer: 78 with util.mock_spec('pkg.__init__') as importer: 90 with util.mock_spec('pkg.__init__', 'pkg.mod', 98 with util.mock_spec('pkg.__init__', 'pkg.mod') as importer: 105 with util.mock_spec('pkg.__init__', 'pkg.module') as mock: 122 context = util.mock_spec('pkg.__init__', 'pkg.module1', 'pkg.module2') [all …]
|
D | test_packages.py | 13 with util.mock_spec('pkg.__init__', 'pkg.module') as mock: 19 with util.mock_spec('pkg.module') as mock: 29 mock = util.mock_spec('pkg.__init__', 'pkg.module', 46 mock = util.mock_spec('pkg.__init__', 'pkg.module', 65 mock = util.mock_spec('pkg.__init__', 'pkg.subpkg.__init__', 95 mock_spec = util.mock_spec('mod', 97 with mock_spec as mock:
|
D | test_meta_path.py | 20 with util.mock_spec(mod) as first, util.mock_spec(mod) as second: 27 with util.mock_spec('nonexistent') as first, \ 28 util.mock_spec(mod_name) as second: 127 mock_modules = util.mock_spec
|
D | test_path.py | 33 importer = util.mock_spec(module) 44 importer = util.mock_spec(module) 53 importer = util.mock_spec(module) 63 importer = util.mock_spec(module) 89 importer = util.mock_spec(module)
|
D | test___package__.py | 118 mock_modules = util.mock_spec 184 mock_modules = util.mock_spec
|
D | test_relative_imports.py | 67 with util.mock_spec(*create) as importer:
|
/third_party/python/Lib/test/test_importlib/ |
D | test_api.py | 23 with test_util.mock_spec('top_level') as mock: 33 with test_util.mock_spec(pkg_long_name, name) as mock: 45 with test_util.mock_spec(pkg_long_name, absolute_name) as mock: 53 with test_util.mock_spec(*modules) as mock: 66 with test_util.mock_spec(pkg_long_name, name) as mock: 91 with test_util.mock_spec(*modules, module_code=code) as mock: 217 mock = test_util.mock_spec('top_level',
|
D | util.py | 280 class mock_spec(_ImporterMock): class
|