diff --git a/tests/test_factor_rules.py b/tests/test_factor_rules.py index 0ff7ad88..5be363aa 100644 --- a/tests/test_factor_rules.py +++ b/tests/test_factor_rules.py @@ -318,6 +318,15 @@ class FactorRulesPathTests(unittest.TestCase): self.assertIn("- Conditions: ('threshold', 5)", summary) + def test_summarize_factor_rules_preserves_empty_string_condition(self): + summary = summarize_factor_rules( + [{"name": "Carry", "signal": "neutral", "conditions": [""]}], + ticker="IEF", + trade_date="2026-03-07", + ) + + self.assertIn("- Conditions: ", summary) + if __name__ == "__main__": unittest.main()