aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tests/test_api.py
diff options
context:
space:
mode:
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")