test_multiply_rule_data
Tests for MultiplyRuleData class
test_multiply_rule_data_creation_logic()
The MultiplyRuleData should parse the provided dictionary to correctly initialize itself during creation
Source code in tests/data/entities/test_multiply_rule_data.py
def test_multiply_rule_data_creation_logic():
"""The MultiplyRuleData should parse the provided dictionary
to correctly initialize itself during creation"""
# Act
data = MultiplyRuleData("test_name", [1.0, 2.0], "input")
# Assert
assert isinstance(data, IRuleData)
assert data.input_variable == "input"
assert data.multipliers == [1.0, 2.0]