MCPcopy Index your code
hub / github.com/reactive-python/reactpy / test_layout_repr

Function test_layout_repr

src/py/reactpy/tests/test_core/test_layout.py:49–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47
48
49def test_layout_repr():
50 @reactpy.component
51 def MyComponent(): ...
52
53 my_component = MyComponent()
54 layout = reactpy.Layout(my_component)
55 assert str(layout) == f"Layout(MyComponent({id(my_component):02x}))"
56
57
58def test_layout_expects_abstract_component():

Callers

nothing calls this directly

Calls 1

MyComponentFunction · 0.70

Tested by

no test coverage detected