From 8e93d64c39e6fc25a0f35bffcb2cd4abc6e95656 Mon Sep 17 00:00:00 2001 From: Michal Szelag Date: Mon, 8 Apr 2024 05:57:46 -0400 Subject: [PATCH] Added unit tests --- tests/pbxsections/TestXCLocalSwiftPackageReference.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/pbxsections/TestXCLocalSwiftPackageReference.py diff --git a/tests/pbxsections/TestXCLocalSwiftPackageReference.py b/tests/pbxsections/TestXCLocalSwiftPackageReference.py new file mode 100644 index 0000000..c9eeb8c --- /dev/null +++ b/tests/pbxsections/TestXCLocalSwiftPackageReference.py @@ -0,0 +1,8 @@ +import unittest +from pbxproj.pbxsections.XCLocalSwiftPackageReference import * + + +class TestXCLocalSwiftPackageReference(unittest.TestCase): + def testGetComment(self): + obj = XCLocalSwiftPackageReference.create('MyPackage') + assert obj._get_comment() == 'XCLocalSwiftPackageReference "MyPackage"'