diff options
| author | 2024-03-17 19:32:36 +0800 | |
|---|---|---|
| committer | 2024-03-17 19:32:36 +0800 | |
| commit | 0652bcf5bfbc2d6deb7d69c6c2bd4025a0d7e0fb (patch) | |
| tree | 2196d0983a40269be97b3ff0a79bc0fcdf4bea79 | |
| parent | b47740890ce9f2e276ce3526ac2add6a4b4ce88c (diff) | |
| download | ipm-0652bcf5bfbc2d6deb7d69c6c2bd4025a0d7e0fb.tar.gz ipm-0652bcf5bfbc2d6deb7d69c6c2bd4025a0d7e0fb.zip | |
test(api): restore api tests
| -rw-r--r-- | tests/test_api.py | 37 |
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) |
