MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_setup_defines_all_files

Method test_setup_defines_all_files

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

Source from the content-addressed store, hash-verified

3750 eq_(py_module.__package__, module.__package__)
3751
3752 def test_setup_defines_all_files(self):
3753 try:
3754 import setuptools # noqa: F401
3755 except ImportError:
3756 testing.skip_test("setuptools is required")
3757 with (
3758 mock.patch("setuptools.setup", mock.MagicMock()),
3759 mock.patch.dict(
3760 "os.environ",
3761 {"DISABLE_SQLALCHEMY_CEXT": "", "REQUIRE_SQLALCHEMY_CEXT": ""},
3762 ),
3763 ):
3764 import setup
3765
3766 setup_modules = {f"sqlalchemy.{m}" for m in setup.CYTHON_MODULES}
3767 expected = {e.__name__ for e in _all_cython_modules()}
3768 print(expected)
3769 print(setup_modules)
3770 eq_(setup_modules, expected)
3771
3772
3773class TestTest(fixtures.TestBase):

Callers

nothing calls this directly

Calls 4

_all_cython_modulesFunction · 0.90
eq_Function · 0.90
skip_testMethod · 0.80
dictMethod · 0.80

Tested by

no test coverage detected