We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c14753c commit 5d65656Copy full SHA for 5d65656
tests/unit/models/test_requests.py
@@ -122,6 +122,16 @@ def test_get_documents(self) -> None:
122
assert documents[1]["content"] == "kind: Pod\n metadata:\n name: private-reg"
123
assert documents[1]["mime_type"] == "application/yaml"
124
125
+ def test_get_documents_no_attachments(self) -> None:
126
+ """Test the get_documents method."""
127
+ attachments = []
128
+ qr = QueryRequest(
129
+ query="Tell me about Kubernetes",
130
+ attachments=attachments,
131
+ )
132
+ documents = qr.get_documents()
133
+ assert len(documents) == 0
134
+
135
def test_validate_provider_and_model(self) -> None:
136
"""Test the validate_provider_and_model method."""
137
qr = QueryRequest(
0 commit comments