MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_all_cyext_imported

Method test_all_cyext_imported

test/base/test_utils.py:3732–3742  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3730 __requires__ = ("cextensions",)
3731
3732 def test_all_cyext_imported(self):
3733 ext = _all_cython_modules()
3734 lib_folder = (Path(__file__).parent / ".." / ".." / "lib").resolve()
3735 sa_folder = lib_folder / "sqlalchemy"
3736 cython_files = [f.resolve() for f in sa_folder.glob("**/*_cy.py")]
3737 eq_(len(ext), len(cython_files))
3738 names = {
3739 ".".join(f.relative_to(lib_folder).parts).replace(".py", "")
3740 for f in cython_files
3741 }
3742 eq_({m.__name__ for m in ext}, set(names))
3743
3744 @testing.combinations(*_all_cython_modules())
3745 def test_load_uncompiled_module(self, module):

Callers

nothing calls this directly

Calls 5

_all_cython_modulesFunction · 0.90
eq_Function · 0.90
resolveMethod · 0.45
replaceMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected