|
15 | 15 | from typesense.configuration import Configuration |
16 | 16 | from typesense.conversation_model import ConversationModel |
17 | 17 | from typesense.conversations_models import ConversationsModels |
| 18 | +from typesense.debug import Debug |
18 | 19 | from typesense.document import Document |
19 | 20 | from typesense.documents import Documents |
20 | 21 | from typesense.key import Key |
@@ -408,6 +409,12 @@ def actual_documents_fixture(actual_api_call: ApiCall) -> Documents: |
408 | 409 | return Documents(actual_api_call, "companies") |
409 | 410 |
|
410 | 411 |
|
| 412 | +@pytest.fixture(scope="function", name="actual_debug") |
| 413 | +def actual_debug_fixture(actual_api_call: ApiCall) -> Debug: |
| 414 | + """Return a Debug object using a real API.""" |
| 415 | + return Debug(actual_api_call) |
| 416 | + |
| 417 | + |
411 | 418 | @pytest.fixture(scope="function", name="actual_multi_search") |
412 | 419 | def actual_multi_search_fixture(actual_api_call: ApiCall) -> MultiSearch: |
413 | 420 | """Return a MultiSearch object using a real API.""" |
@@ -626,6 +633,12 @@ def fake_document_fixture(fake_api_call: ApiCall) -> Document: |
626 | 633 | return Document(fake_api_call, "companies", "0") |
627 | 634 |
|
628 | 635 |
|
| 636 | +@pytest.fixture(scope="function", name="fake_debug") |
| 637 | +def fake_debug_fixture(fake_api_call: ApiCall) -> Debug: |
| 638 | + """Return a debug object with test values.""" |
| 639 | + return Debug(fake_api_call) |
| 640 | + |
| 641 | + |
629 | 642 | class Company(typing.TypedDict): |
630 | 643 | """Company data type.""" |
631 | 644 |
|
|
0 commit comments