From 86db8c93cc1bb30b1cbc0d39680bd953fec98ed0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20P=C3=B6hn?= Date: Thu, 4 Apr 2024 14:14:58 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20fix=20parse=5Fipa=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/update.TestCase | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/tests/update.TestCase b/tests/update.TestCase index 6f0b8654..2ab19a3a 100755 --- a/tests/update.TestCase +++ b/tests/update.TestCase @@ -1936,7 +1936,10 @@ class UpdateTest(unittest.TestCase): index['repo'][CATEGORIES_CONFIG_NAME], ) + +class TestParseIpa(unittest.TestCase): def test_parse_ipa(self): + self.maxDiff = None try: import biplist # Fedora does not have a biplist package @@ -1959,6 +1962,27 @@ class UpdateTest(unittest.TestCase): 'size': 'fake_size', 'versionCode': 1000000000001, 'versionName': '1.0.1', + 'ipa_DTPlatformVersion': '16.4', + 'ipa_MinimumOSVersion': '15.0', + 'ipa_entitlements': set(), + 'ipa_permissions': { + 'NSCameraUsageDescription': + 'Please allow access to your ' + 'camera, if you want to ' + 'create photos or videos for ' + 'direct sharing.', + 'NSMicrophoneUsageDescription': + 'Please allow access to ' + 'your microphone, if you ' + 'want to create videos ' + 'for direct sharing.', + 'NSPhotoLibraryUsageDescription': + 'Please allow access to ' + 'your photo library, if ' + 'you want to share ' + 'photos.', + }, + 'name': 'OnionShare', }, )