mirror of
https://github.com/django-components/django-components.git
synced 2025-08-04 06:18:17 +00:00
refactor: update tests
This commit is contained in:
parent
fee26ec1d8
commit
5f07f3d4da
3 changed files with 350 additions and 30 deletions
|
@ -141,11 +141,11 @@ class InlineComponentTest(BaseTestCase):
|
|||
"var2": var2,
|
||||
}
|
||||
|
||||
comp = FilteredComponent("filtered_component")
|
||||
context = Context(comp.get_context_data(var1="test1", var2="test2"))
|
||||
|
||||
rendered = FilteredComponent.render(
|
||||
kwargs={"var1": "test1", "var2": "test2"}
|
||||
)
|
||||
self.assertHTMLEqual(
|
||||
comp.render(context),
|
||||
rendered,
|
||||
"""
|
||||
Var1: <strong>test1</strong>
|
||||
Var2 (uppercased): <strong>TEST2</strong>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue