From aa39ef02e0bf7d4bf47349cd59ddf4d92de03df8 Mon Sep 17 00:00:00 2001 From: 苏向夜 Date: Sat, 27 Jan 2024 16:25:17 +0800 Subject: :sparkles: feat(internal): return a Register class instead of ModuleType in require function --- tests/test_internal.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/test_internal.py (limited to 'tests') diff --git a/tests/test_internal.py b/tests/test_internal.py new file mode 100644 index 00000000..321c9f5c --- /dev/null +++ b/tests/test_internal.py @@ -0,0 +1,11 @@ +from infini.internal import require +from ipm import api + +import shutil + + +def test_internal(): + api.new("test_ipk") + registers = require("test_ipk") + assert registers + shutil.rmtree("test_ipk") -- cgit v1.2.3-70-g09d2