Skip to content

Commit

Permalink
add to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Avielyo10 committed Mar 6, 2024
1 parent bcfae41 commit 3cf5b10
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
5 changes: 3 additions & 2 deletions examples/data/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
}
]
},
"message": "jinja"
}
"message": "jinja",
"some_date": "2022-02-02"
}
3 changes: 2 additions & 1 deletion examples/data/data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ access_lists:
- action: permit
src: 10.0.0.0/22
dst: 10.100.0.0/24
message: jinja
message: jinja
some_date: 2022-02-02
1 change: 1 addition & 0 deletions examples/templates/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ ip access-list extended {{ acl }}
{% endfor %}(6)
{% endfor %}(7)
hello {{ message }}!
the date is {{ some_date }}
# All ACLs have been generated
2 changes: 2 additions & 0 deletions tests/test_render.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
(5)(6)
(7)
hello jinja!
the date is 2022-02-02
# All ACLs have been generated
"""

Expand All @@ -39,6 +40,7 @@
(6)
(7)
hello jinja!
the date is 2022-02-02
# All ACLs have been generated
"""

Expand Down

0 comments on commit 3cf5b10

Please sign in to comment.