diff options
| author | 2024-01-18 14:51:53 +0800 | |
|---|---|---|
| committer | 2024-01-18 14:51:53 +0800 | |
| commit | 6066d82fb31e3b33c4d7b25cdf880b8b3fb54c81 (patch) | |
| tree | 2551fe28cf94880e3dfb0da7c0b17f9add81861e /tests | |
| parent | 8a3e0a4ab425bea2930125ee5d90b0dd710defd9 (diff) | |
| download | ipm-6066d82fb31e3b33c4d7b25cdf880b8b3fb54c81.tar.gz ipm-6066d82fb31e3b33c4d7b25cdf880b8b3fb54c81.zip | |
:bug: fix(deps): fix path error
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_api.py | 12 |
1 files changed, 10 insertions, 2 deletions
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) |
