From a0eced157f1acd3d57b57a7e92a2dd2bb8c7bc24 Mon Sep 17 00:00:00 2001 From: 苏向夜 Date: Tue, 16 Jan 2024 19:27:02 +0800 Subject: :tada: feat(milestone) IPM 立项 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/__init__.py | 0 tests/test_api.py | 15 +++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 tests/__init__.py create mode 100644 tests/test_api.py (limited to 'tests') diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/test_api.py b/tests/test_api.py new file mode 100644 index 0000000..e45bb77 --- /dev/null +++ b/tests/test_api.py @@ -0,0 +1,15 @@ +from ipm.api import build, extract, install + + +def test_build(): + build("C:\\Users\\fu050\\Desktop\\coc") + + +def test_extract(): + build("C:\\Users\\fu050\\Desktop\\coc") + extract("C:\\Users\\fu050\\Desktop\\coc\\dist\\coc-0.1.0-alpha.1.ipk") + + +def test_install(): + build("C:\\Users\\fu050\\Desktop\\coc") + install("C:\\Users\\fu050\\Desktop\\coc\\dist\\coc-0.1.0-alpha.1.ipk") -- cgit v1.2.3-70-g09d2