From 6066d82fb31e3b33c4d7b25cdf880b8b3fb54c81 Mon Sep 17 00:00:00 2001 From: 苏向夜 Date: Thu, 18 Jan 2024 14:51:53 +0800 Subject: :bug: fix(deps): fix path error --- test/infini.toml | 9 --------- test/src/__init__.py | 1 - tests/test_api.py | 12 ++++++++++-- 3 files changed, 10 insertions(+), 12 deletions(-) delete mode 100644 test/infini.toml delete mode 100644 test/src/__init__.py 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) -- cgit v1.2.3-70-g09d2