We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d84aaf commit 46f307fCopy full SHA for 46f307f
tests/test_autoimport.py
@@ -14,6 +14,14 @@ def test_simple_imports(self):
14
random_number = np.random.rand()
15
self.assertIsInstance(np, LazyLoader)
16
self.assertLess(random_number, 1.0)
17
+
18
+ def test_multiple_imports(self):
19
+ """Test multiple import statements."""
20
+ for _ in range(3):
21
+ with lazy():
22
+ import random
23
+ random_number = random.random()
24
+ self.assertLess(random_number, 1.0)
25
26
def test_attribute_access(self):
27
"""Test accessing attributes triggers actual import."""
0 commit comments