Update tests

This commit is contained in:
Balazs Perlaki-Horvath 2024-01-19 20:55:14 +01:00
parent dc068e0f16
commit d9698df02a
2 changed files with 4 additions and 4 deletions

View File

@ -6,11 +6,11 @@ from pathlib import Path
class CustomAppsTest(unittest.TestCase): class CustomAppsTest(unittest.TestCase):
def setUp(self): def setUp(self):
self.custom = CustomApps() self.custom = CustomApps(brands=["dwds"], build_number=1)
def test_custom_plist(self): def test_custom_plist(self):
self.custom.create_plists( self.custom.create_plists(
custom_plist=Path()/"tests"/"Support"/"Info.plist") custom_plist=Path("tests")/"Support"/"Info.plist")
def test_custom_project_creation(self): def test_custom_project_creation(self):
self.custom.create_custom_project_file( self.custom.create_custom_project_file(

View File

@ -8,7 +8,7 @@ import os
class InfoParserTest(unittest.TestCase): class InfoParserTest(unittest.TestCase):
def setUp(self): 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): def test_json_to_project_yml(self):
project = self.parser.as_project_yml() project = self.parser.as_project_yml()
@ -46,7 +46,7 @@ class InfoParserTest(unittest.TestCase):
self.assertIn("**/*.lproj", excluded) self.assertIn("**/*.lproj", excluded)
def test_app_version_with_default_json_build_number(self): 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): def test_app_version_using_a_specific_build_number(self):
parser = InfoParser(Path("tests")/"test.json", build_number=15) parser = InfoParser(Path("tests")/"test.json", build_number=15)