Skip to content

test_rule_data

Tests for RuleData class

test_rule_data_creation_logic()

The RuleData should parse the provided dictionary to correctly initialize itself during creation

Source code in tests/data/entities/test_rule_data.py
def test_rule_data_creation_logic():
    """The RuleData should parse the provided dictionary
    to correctly initialize itself during creation"""

    # Act
    data = RuleData("test_name")
    data.output_variable = "foo"

    # Assert

    assert isinstance(data, IRuleData)
    assert data.name == "test_name"
    assert data.description == ""
    assert data.output_variable == "foo"