def test_console_script_exists(self, tmpdir, package_location): """Test that we can check console_script presence.""" install_dir = os.path.join(tmpdir, "install") install(["-t", str(install_dir), str(package_location)]) empty_dir = os.path.join(tmpdir, "empty") os.makedirs(empty_dir) assert console_script_exists([Path(empty_dir), Path(install_dir)], "hello")
def test_console_script_exists(self, tmp_path, package_location): """Test that we can check console_script presence.""" install_dir = tmp_path / "install" install(["-t", str(install_dir), str(package_location)]) empty_dir = tmp_path / "empty" empty_dir.mkdir() assert console_script_exists([empty_dir, install_dir], "hello.exe" if os.name == "nt" else "hello")