mirror of
https://github.com/kiwix/kiwix-apple-custom.git
synced 2025-08-03 18:46:07 -04:00
Update tests
This commit is contained in:
parent
dc068e0f16
commit
d9698df02a
@ -6,11 +6,11 @@ from pathlib import Path
|
||||
class CustomAppsTest(unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
self.custom = CustomApps()
|
||||
self.custom = CustomApps(brands=["dwds"], build_number=1)
|
||||
|
||||
def test_custom_plist(self):
|
||||
self.custom.create_plists(
|
||||
custom_plist=Path()/"tests"/"Support"/"Info.plist")
|
||||
custom_plist=Path("tests")/"Support"/"Info.plist")
|
||||
|
||||
def test_custom_project_creation(self):
|
||||
self.custom.create_custom_project_file(
|
||||
|
@ -8,7 +8,7 @@ import os
|
||||
class InfoParserTest(unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
self.parser = InfoParser(Path("tests")/"test.json")
|
||||
self.parser = InfoParser(Path("tests")/"test.json", build_number=1)
|
||||
|
||||
def test_json_to_project_yml(self):
|
||||
project = self.parser.as_project_yml()
|
||||
@ -46,7 +46,7 @@ class InfoParserTest(unittest.TestCase):
|
||||
self.assertIn("**/*.lproj", excluded)
|
||||
|
||||
def test_app_version_with_default_json_build_number(self):
|
||||
self.assertEqual(self.parser.version.semantic, "2023.12.3")
|
||||
self.assertEqual(self.parser.version.semantic, "2023.12.1")
|
||||
|
||||
def test_app_version_using_a_specific_build_number(self):
|
||||
parser = InfoParser(Path("tests")/"test.json", build_number=15)
|
||||
|
Loading…
x
Reference in New Issue
Block a user