Skip to content

Commit

Permalink
Add safe_description unit test case
Browse files Browse the repository at this point in the history
  • Loading branch information
kkuznets committed Feb 15, 2024
1 parent e3d86e8 commit ffa8767
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ def test_safe_description(self):
"Depends on\n\nQuestion { #2 }!",
safe_description("Depends on\n\nQuestion { #2 }!"),
)
self.assertEqual(
"(start_date) - cast((rolling_days))",
safe_description("{{start_date}} - cast({{rolling_days}})"),
)

def test_dump_yaml(self):
path = Path("tests") / "tmp" / "test_dump_yaml.yml"
Expand Down

0 comments on commit ffa8767

Please sign in to comment.