Skip to content

test_depth_average_rule_data

Tests for DepthAverageRuleData class

test_depth_average_rule_data_creation_logic()

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

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

    # Act
    data = DepthAverageRuleData("test_name",
                                "input1",
                                )

    # Assert

    assert isinstance(data, IRuleData)
    assert data.input_variables == "input1"