aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tests/test_injector.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_injector.py')
-rw-r--r--tests/test_injector.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_injector.py b/tests/test_injector.py
index 0d320a2c..426e5684 100644
--- a/tests/test_injector.py
+++ b/tests/test_injector.py
@@ -2,10 +2,13 @@ from infini.injector import Injector
def test_injector():
+ def name(name: str):
+ return name
+
def add(a: int, b: int = 0):
return a + b
injector = Injector()
- injector.parameters = {"a": 12, "b": 20, "c": 0}
+ injector.parameters = {"a": 12, "b": 20, "c": 0, "card_name": name}
assert injector.inject(add)() == 32
assert injector.output(add) == 32