Spaces:
Running
Running
test embedded app
Browse files- notebooks/test_multiplier +10 -0
notebooks/test_multiplier
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import asyncio
|
2 |
+
from multiplier import app
|
3 |
+
|
4 |
+
result = asyncio.run(app.embed())
|
5 |
+
defs = result.defs._dict # all variables as they exist in a current state
|
6 |
+
|
7 |
+
def test_z_is_defined():
|
8 |
+
z = defs.get("z")
|
9 |
+
assert z
|
10 |
+
print(z)
|