Skip to content

Commit de63cfe

Browse files
committed
test: Smoke test no attributes
1 parent 76158ba commit de63cfe

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/test_lazy_loader.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,14 @@ def test_lazy_attach():
136136
locls["__getattr__"]("unknown_attr")
137137

138138

139+
def test_lazy_attach_noattrs():
140+
name = "mymod"
141+
submods = ["mysubmodule", "anothersubmodule"]
142+
_, _, all_ = lazy.attach(name, submods)
143+
144+
assert all_ == sorted(submods)
145+
146+
139147
def test_lazy_attach_returns_copies():
140148
_get, _dir, _all = lazy.attach(
141149
__name__, ["my_submodule", "another_submodule"], {"foo": ["some_attr"]}

0 commit comments

Comments
 (0)