From 08c13ddd0bffd2fc08282afccc73980bdbbdab0d Mon Sep 17 00:00:00 2001 From: 苏向夜 Date: Thu, 18 Jan 2024 14:31:04 +0800 Subject: :sparkles: fix(test): fix test --- tests/test_api.py | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'tests/test_api.py') diff --git a/tests/test_api.py b/tests/test_api.py index e45bb77..7136b36 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -1,15 +1,20 @@ -from ipm.api import build, extract, install +from ipm import api + + +def test_new(): + api.new("test") def test_build(): - build("C:\\Users\\fu050\\Desktop\\coc") + api.new("test") + api.build("test") def test_extract(): - build("C:\\Users\\fu050\\Desktop\\coc") - extract("C:\\Users\\fu050\\Desktop\\coc\\dist\\coc-0.1.0-alpha.1.ipk") + api.build("test") + api.extract("test\\dist\\test-0.1.0.ipk") def test_install(): - build("C:\\Users\\fu050\\Desktop\\coc") - install("C:\\Users\\fu050\\Desktop\\coc\\dist\\coc-0.1.0-alpha.1.ipk") + api.build("test") + api.install("test\\dist\\test-0.1.0.ipk") -- cgit v1.2.3-70-g09d2