Skip to content

Commit 2d6bf20

Browse files
committed
add test case
1 parent 6307bf8 commit 2d6bf20

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/change_podfile.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ def save_to_podfile(text):
3030
def initial():
3131
return (wrapper(
3232
"""
33+
keep_source_code_for_prebuilt_frameworks!
34+
3335
pod "Masonry"
3436
"""),
3537
"""
@@ -39,6 +41,8 @@ def initial():
3941
def addSwiftPod():
4042
return (wrapper(
4143
"""
44+
keep_source_code_for_prebuilt_frameworks!
45+
4246
pod "RxCocoa", :binary => true
4347
pod "Literal", :binary => true
4448
"""),
@@ -50,6 +54,8 @@ def addSwiftPod():
5054
def revertToSourceCode():
5155
return (wrapper(
5256
"""
57+
keep_source_code_for_prebuilt_frameworks!
58+
5359
pod "RxCocoa", :binary => true
5460
pod "Literal"
5561
"""),
@@ -132,5 +138,5 @@ def universalFlag():
132138

133139
if __name__ == "__main__":
134140
arg = sys.argv[1]
135-
print("change Podfile to: " + arg)
141+
print("===================\nchange Podfile to: " + arg + "\n")
136142
save_to_podfile(globals()[arg]())

0 commit comments

Comments
 (0)