Skip to content

Commit 081bbe1

Browse files
committed
fix test
1 parent c9c72bf commit 081bbe1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/notifications-library/tests/test__render.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,17 @@
22
from pathlib import Path
33

44
from models_library.products import ProductName
5+
from notifications_library._models import ProductData
56
from notifications_library._render import (
67
create_render_env_from_folder,
78
create_render_env_from_package,
89
)
910
from notifications_library._templates import _print_tree, _templates_dir
1011

1112

12-
def test_render_env_from_folder(tmp_path: Path, product_name: ProductName):
13+
def test_render_env_from_folder(
14+
tmp_path: Path, product_name: ProductName, product_data: ProductData
15+
):
1316

1417
pkg_env = create_render_env_from_package()
1518

@@ -27,4 +30,5 @@ def test_render_env_from_folder(tmp_path: Path, product_name: ProductName):
2730
product_template = consolidated_env.get_template(f"{product_name}/base.html")
2831
common_template = pkg_env.get_template("base.html")
2932

30-
assert product_template.render() == common_template.render()
33+
data = {"product": product_data}
34+
assert product_template.render(data) == common_template.render(data)

0 commit comments

Comments
 (0)