def test_base_class_vars(test_state):
    """Test that the class vars are set correctly.

    Args:
        test_state: A state.
    """
    fields = test_state.get_fields()
    cls = type(test_state)

    for field in fields:
        if field.startswith("_") or field in cls.get_skip_vars():
            continue
        prop = getattr(cls, field)
        assert isinstance(prop, Var)
        assert prop._js_expr.split(".")[-1] == field

    assert cls.num1._var_type is int
    assert cls.num2._var_type is float
    assert cls.key._var_type is str
Test that the class vars are set correctly.

    Args:
        test_state: A state.
    
tests/units/test_state.py