Skip to content

Commit 014fa4b

Browse files
author
User
committed
Fix test assertion in test_jinja_component_renders_without_error
The component template does not use data-reactpy attribute. Check for mountComponent and the component dotted path instead.
1 parent b3ae980 commit 014fa4b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/test_app/tests/test_jinja.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ def test_jinja_component_renders_without_error(self):
8888
template = jinja2_engine.from_string("{{ component('test_app.components.hello_world') }}")
8989
rendered = template.render({"request": request})
9090
assert isinstance(rendered, str)
91-
assert "data-reactpy" in rendered
91+
assert "mountComponent" in rendered
92+
assert "test_app.components.hello_world" in rendered
9293

9394
@override_settings(TEMPLATES=JINJA2_TEMPLATES)
9495
def test_jinja_extension_configuration(self):

0 commit comments

Comments
 (0)