def test_write_distinfo_default_compress_type_is_from_init( self, buf, tmp_file): wf = WheelFile(buf, 'w', distname='_', version='0', compression=ZIP_BZIP2) wf.write_distinfo(tmp_file) assert wf.infolist()[0].compress_type == ZIP_BZIP2
def test_write_distinfo_default_compresslevel_is_from_init( self, buf, tmp_file): wf = WheelFile(buf, 'w', distname='_', version='0', compresslevel=9) wf.write_distinfo(tmp_file) assert wf.infolist()[0]._compresslevel == 9
def test_write_distinfo_default_compress_type_is_deflate( self, buf, tmp_file): wf = WheelFile(buf, 'w', distname='_', version='0') wf.write_distinfo(tmp_file) assert wf.infolist()[0].compress_type == ZIP_DEFLATED