def test_set(child):
    """Test setting fields.

    Args:
        child: A child class.
    """
    child.set(num=1, key="a")
    assert child.num == 1
    assert child.key == "a"
Test setting fields.

    Args:
        child: A child class.
    
tests/units/test_base.py