aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tests/test_api.py
diff options
context:
space:
mode:
author苏向夜 <fu050409@163.com>2024-01-16 19:27:02 +0800
committer苏向夜 <fu050409@163.com>2024-01-16 19:27:02 +0800
commita0eced157f1acd3d57b57a7e92a2dd2bb8c7bc24 (patch)
treead6aec2975f1e477935982990ab471a52f45246e /tests/test_api.py
downloadipm-a0eced157f1acd3d57b57a7e92a2dd2bb8c7bc24.tar.gz
ipm-a0eced157f1acd3d57b57a7e92a2dd2bb8c7bc24.zip
:tada: feat(milestone) IPM 立项
Diffstat (limited to 'tests/test_api.py')
-rw-r--r--tests/test_api.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/test_api.py b/tests/test_api.py
new file mode 100644
index 0000000..e45bb77
--- /dev/null
+++ b/tests/test_api.py
@@ -0,0 +1,15 @@
+from ipm.api import build, extract, install
+
+
+def test_build():
+ build("C:\\Users\\fu050\\Desktop\\coc")
+
+
+def test_extract():
+ build("C:\\Users\\fu050\\Desktop\\coc")
+ extract("C:\\Users\\fu050\\Desktop\\coc\\dist\\coc-0.1.0-alpha.1.ipk")
+
+
+def test_install():
+ build("C:\\Users\\fu050\\Desktop\\coc")
+ install("C:\\Users\\fu050\\Desktop\\coc\\dist\\coc-0.1.0-alpha.1.ipk")