aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author苏向夜 <fu050409@163.com>2024-03-17 19:32:36 +0800
committer苏向夜 <fu050409@163.com>2024-03-17 19:32:36 +0800
commit0652bcf5bfbc2d6deb7d69c6c2bd4025a0d7e0fb (patch)
tree2196d0983a40269be97b3ff0a79bc0fcdf4bea79
parentb47740890ce9f2e276ce3526ac2add6a4b4ce88c (diff)
downloadipm-0652bcf5bfbc2d6deb7d69c6c2bd4025a0d7e0fb.tar.gz
ipm-0652bcf5bfbc2d6deb7d69c6c2bd4025a0d7e0fb.zip
test(api): restore api tests
-rw-r--r--tests/test_api.py37
1 files changed, 13 insertions, 24 deletions
diff --git a/tests/test_api.py b/tests/test_api.py
index 490d192..c9e9bff 100644
--- a/tests/test_api.py
+++ b/tests/test_api.py
@@ -8,31 +8,20 @@ def test_new():
shutil.rmtree("test", ignore_errors=True)
-# def test_build():
-# api.new("test")
-# api.build("test")
-# shutil.rmtree("test", ignore_errors=True)
-
-
-# def test_extract():
-# api.new("test")
-# api.build("test")
-# api.extract("./test/dist/test-0.1.0.ipk")
-# shutil.rmtree("test", ignore_errors=True)
-
-
-# def test_install():
-# api.new("test")
-# api.build("test")
-# api.install("./test/dist/test-0.1.0.ipk")
-# shutil.rmtree("test", ignore_errors=True)
+def test_build():
+ api.new("test")
+ api.build("test")
+ shutil.rmtree("test", ignore_errors=True)
-# def test_uninstall():
-# api.uninstall("test", is_confirm=True)
+def test_extract():
+ api.new("test")
+ api.build("test")
+ api.extract("./test/dist/test-0.1.0.ipk")
+ shutil.rmtree("test", ignore_errors=True)
-# def test_check():
-# api.new("test")
-# api.check("test")
-# shutil.rmtree("test", ignore_errors=True)
+def test_check():
+ api.new("test")
+ api.check("test")
+ shutil.rmtree("test", ignore_errors=True)