From d9698df02a4c7a6bd64ad80cae3675e4e1cc65d0 Mon Sep 17 00:00:00 2001 From: Balazs Perlaki-Horvath Date: Fri, 19 Jan 2024 20:55:14 +0100 Subject: [PATCH] Update tests --- tests/custom_apps_test.py | 4 ++-- tests/info_parser_test.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/custom_apps_test.py b/tests/custom_apps_test.py index 5829345..362bc37 100644 --- a/tests/custom_apps_test.py +++ b/tests/custom_apps_test.py @@ -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( diff --git a/tests/info_parser_test.py b/tests/info_parser_test.py index 5b29923..b35cc38 100644 --- a/tests/info_parser_test.py +++ b/tests/info_parser_test.py @@ -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)