Skip to content

Commit a88bee4

Browse files
committed
add tests for relational query
1 parent 35e2d3f commit a88bee4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/django_idom/hooks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def use_query(
112112
113113
Args:
114114
query: A callable that returns a Django `Model` or `QuerySet`.
115-
options: A `QueryOptions` object that can modify how the query is excuted.
115+
options: An optional `QueryOptions` object that can modify how the query is excuted.
116116
*args: Positional arguments to pass into `query`.
117117
118118
Keyword Args:

tests/test_app/tests/test_components.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ def test_authorized_user(self):
9191
)
9292
self.page.wait_for_selector("#authorized-user")
9393

94+
def test_relational_query(self):
95+
self.page.locator("#relational-query[data-success=true]").wait_for()
96+
9497
def test_use_query_and_mutation(self):
9598
todo_input = self.page.wait_for_selector("#todo-input")
9699

0 commit comments

Comments
 (0)