aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--test/infini.toml9
-rw-r--r--test/src/__init__.py1
-rw-r--r--tests/test_api.py12
3 files changed, 10 insertions, 12 deletions
diff --git a/test/infini.toml b/test/infini.toml
deleted file mode 100644
index cc0f720..0000000
--- a/test/infini.toml
+++ /dev/null
@@ -1,9 +0,0 @@
-[infini]
-name = "test"
-version = "0.1.0"
-description = "COC 规则包"
-license = "MIT"
-
-[requirements]
-
-[dependencies]
diff --git a/test/src/__init__.py b/test/src/__init__.py
deleted file mode 100644
index d93492e..0000000
--- a/test/src/__init__.py
+++ /dev/null
@@ -1 +0,0 @@
-# Initialized `__init__.py` generated by ipm. \ No newline at end of file
diff --git a/tests/test_api.py b/tests/test_api.py
index 7136b36..ae3c023 100644
--- a/tests/test_api.py
+++ b/tests/test_api.py
@@ -1,20 +1,28 @@
from ipm import api
+import shutil
+
def test_new():
api.new("test")
+ 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")
+ 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")
+ api.install("./test/dist/test-0.1.0.ipk")
+ shutil.rmtree("test", ignore_errors=True)