def test_child_mixin_state() -> None:
    """Test that mixin vars are only applied to the highest state in the hierarchy."""
    assert "num" in ChildUsesMixinState.inherited_vars
    assert "num" not in ChildUsesMixinState.base_vars

    assert "computed" in ChildUsesMixinState.inherited_vars
    assert "computed" not in ChildUsesMixinState.computed_vars

    assert ChildUsesMixinState.get_parent_state() == UsesMixinState
    assert ChildUsesMixinState.get_root_state() == State
Test that mixin vars are only applied to the highest state in the hierarchy.
tests/units/test_state.py