CoolFace
Apppublic

Aluode/PerceptionLabPortable

sourceHugging Faceupdated 9mo agoView on Hugging Face
0likes
test_install_headers.py34 linesDownload Raw Back to tests
1"""Tests for distutils.command.install_headers."""2 3import os4from distutils.command.install_headers import install_headers5from distutils.tests import support6 7import pytest8 9 10@pytest.mark.usefixtures('save_env')11class TestInstallHeaders(12    support.TempdirManager,13):14    def test_simple_run(self):15        # we have two headers16        header_list = self.mkdtemp()17        header1 = os.path.join(header_list, 'header1')18        header2 = os.path.join(header_list, 'header2')19        self.write_file(header1)20        self.write_file(header2)21        headers = [header1, header2]22 23        pkg_dir, dist = self.create_dist(headers=headers)24        cmd = install_headers(dist)25        assert cmd.get_inputs() == headers26 27        # let's run the command28        cmd.install_dir = os.path.join(pkg_dir, 'inst')29        cmd.ensure_finalized()30        cmd.run()31 32        # let's check the results33        assert len(cmd.get_outputs()) == 234 
Aluode/PerceptionLabPortable · CoolFace