class documentation

class ModuleFinderSuite(Suite): (source)

View In Hierarchy

Undocumented

Method set​Up Undocumented
Method test​_​_find​_a​_in​_pkg1 Undocumented
Method test​_​_find​_b​_init​_in​_pkg2 Undocumented
Method test​_​_find​_d​_nowhere Undocumented
Method test​_​_find​_nsx​_a​_init​_in​_pkg1 Find nsx-pkg1/nsx/a/__init__.py for "nsx.a" in namespace mode.
Method test​_​_find​_nsx​_as​_namespace​_pkg​_in​_pkg1 There's no __init__.py in any of the nsx dirs, return the path to the first one found in mypypath.
Method test​_​_find​_nsx​_b​_init​_in​_pkg2 Find nsx-pkg2/nsx/b/__init__.py for "nsx.b" in namespace mode.
Method test​_​_find​_nsx​_c​_c​_in​_pkg3 Find nsx-pkg3/nsx/c/c.py for "nsx.c.c" in namespace mode.
Method test​_​_find​_nsy​_a​_​_init​_pyi Prefer nsy-pkg1/a/__init__.pyi file over __init__.py.
Method test​_​_find​_nsy​_b​_​_init​_py There is a nsy-pkg2/nsy/b.pyi, but also a nsy-pkg2/nsy/b/__init__.py. We expect to find the latter when looking up "nsy.b" as a package is preferred over a module.
Method test​_​_find​_nsy​_c​_pyi There is a nsy-pkg2/nsy/c.pyi and nsy-pkg2/nsy/c.py We expect to find the former when looking up "nsy.b" as .pyi is preferred over .py.
Method test​_​_no​_namespace​_packages​_​_find​_a​_in​_pkg1 Find find pkg1/a.py for "a" with namespace_packages False.
Method test​_​_no​_namespace​_packages​_​_find​_b​_in​_pkg2 Undocumented
Method test​_​_no​_namespace​_packages​_​_nsx If namespace_packages is False, we shouldn't find nsx
Method test​_​_no​_namespace​_packages​_​_nsx​_a If namespace_packages is False, we shouldn't find nsx.a.
Instance Variable fmc​_nons Undocumented
Instance Variable fmc​_ns Undocumented
Instance Variable search​_paths Undocumented
def setUp(self): (source)

Undocumented

def test__find_a_in_pkg1(self): (source)

Undocumented

def test__find_b_init_in_pkg2(self): (source)

Undocumented

def test__find_d_nowhere(self): (source)

Undocumented

def test__find_nsx_a_init_in_pkg1(self): (source)
Find nsx-pkg1/nsx/a/__init__.py for "nsx.a" in namespace mode.
def test__find_nsx_as_namespace_pkg_in_pkg1(self): (source)
There's no __init__.py in any of the nsx dirs, return the path to the first one found in mypypath.
def test__find_nsx_b_init_in_pkg2(self): (source)
Find nsx-pkg2/nsx/b/__init__.py for "nsx.b" in namespace mode.
def test__find_nsx_c_c_in_pkg3(self): (source)
Find nsx-pkg3/nsx/c/c.py for "nsx.c.c" in namespace mode.
def test__find_nsy_a__init_pyi(self): (source)
Prefer nsy-pkg1/a/__init__.pyi file over __init__.py.
def test__find_nsy_b__init_py(self): (source)
There is a nsy-pkg2/nsy/b.pyi, but also a nsy-pkg2/nsy/b/__init__.py. We expect to find the latter when looking up "nsy.b" as a package is preferred over a module.
def test__find_nsy_c_pyi(self): (source)
There is a nsy-pkg2/nsy/c.pyi and nsy-pkg2/nsy/c.py We expect to find the former when looking up "nsy.b" as .pyi is preferred over .py.
def test__no_namespace_packages__find_a_in_pkg1(self): (source)
Find find pkg1/a.py for "a" with namespace_packages False.
def test__no_namespace_packages__find_b_in_pkg2(self): (source)

Undocumented

def test__no_namespace_packages__nsx(self): (source)
If namespace_packages is False, we shouldn't find nsx
def test__no_namespace_packages__nsx_a(self): (source)
If namespace_packages is False, we shouldn't find nsx.a.
fmc_nons = (source)

Undocumented

fmc_ns = (source)

Undocumented

search_paths = (source)

Undocumented