Test that we can create a custom component. Args: my_component: A test custom component.
(my_component)
| 440 | |
| 441 | |
| 442 | def test_create_custom_component(my_component): |
| 443 | """Test that we can create a custom component. |
| 444 | |
| 445 | Args: |
| 446 | my_component: A test custom component. |
| 447 | """ |
| 448 | component = CustomComponent(component_fn=my_component, prop1="test", prop2=1) |
| 449 | assert component.tag == "MyComponent" |
| 450 | assert component.get_props() == set() |
| 451 | assert component.get_custom_components() == {component} |
| 452 | |
| 453 | |
| 454 | def test_custom_component_hash(my_component): |
nothing calls this directly
no test coverage detected