Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
test_depends.py16 linesDownload Raw Back to tests
1import sys2 3from setuptools import depends4 5 6class TestGetModuleConstant:7    def test_basic(self):8        """9        Invoke get_module_constant on a module in10        the test package.11        """12        mod_name = 'setuptools.tests.mod_with_constant'13        val = depends.get_module_constant(mod_name, 'value')14        assert val == 'three, sir!'15        assert 'setuptools.tests.mod_with_constant' not in sys.modules16 
codekingpro/portable-devtools · Team Ai