Skip to content

test_rolling_statistics_rule_data

Tests for RollingStatisticsRuleData class

test_rulling_statistics_rule_data_creation_logic()

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

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

    # Act
    data = RollingStatisticsRuleData("test_name", TimeOperationType.MIN, "input", 1)

    # Assert

    assert isinstance(data, IRuleData)
    assert data.input_variable == "input"
    assert data.operation == 2