MCPcopy Create free account
hub / github.com/dot-agent/nextpy / test_custom_component_hash

Function test_custom_component_hash

tests/components/test_component.py:454–462  ·  view source on GitHub ↗

Test that the hash of a custom component is correct. Args: my_component: A test custom component.

(my_component)

Source from the content-addressed store, hash-verified

452
453
454def test_custom_component_hash(my_component):
455 """Test that the hash of a custom component is correct.
456
457 Args:
458 my_component: A test custom component.
459 """
460 component1 = CustomComponent(component_fn=my_component, prop1="test", prop2=1)
461 component2 = CustomComponent(component_fn=my_component, prop1="test", prop2=2)
462 assert {component1, component2} == {component1}
463
464
465def test_custom_component_wrapper():

Callers

nothing calls this directly

Calls 1

CustomComponentClass · 0.90

Tested by

no test coverage detected