diff options
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) |
