Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
test_build.py34 linesDownload Raw Back to tests
1from setuptools import Command2from setuptools.command.build import build3from setuptools.dist import Distribution4 5 6def test_distribution_gives_setuptools_build_obj(tmpdir_cwd):7    """8    Check that the setuptools Distribution uses the9    setuptools specific build object.10    """11 12    dist = Distribution(13        dict(14            script_name='setup.py',15            script_args=['build'],16            packages=[],17            package_data={'': ['path/*']},18        )19    )20    assert isinstance(dist.get_command_obj("build"), build)21 22 23class Subcommand(Command):24    """Dummy command to be used in tests"""25 26    def initialize_options(self):27        pass28 29    def finalize_options(self):30        pass31 32    def run(self):33        raise NotImplementedError("just to check if the command runs")34 
codekingpro/portable-devtools · Team Ai