Support syncing, searching images from Obsidian plugin

This commit is contained in:
Debanjum Singh Solanky
2024-07-09 17:29:13 +05:30
parent 260aa61818
commit 21fe1a917b
4 changed files with 39 additions and 18 deletions

View File

@@ -61,7 +61,7 @@ def test_search_with_invalid_content_type(client):
@pytest.mark.django_db(transaction=True)
def test_search_with_valid_content_type(client):
headers = {"Authorization": "Bearer kk-secret"}
for content_type in ["all", "org", "markdown", "image", "pdf", "github", "notion", "plaintext", "docx"]:
for content_type in ["all", "org", "markdown", "image", "pdf", "github", "notion", "plaintext", "image", "docx"]:
# Act
response = client.get(f"/api/search?q=random&t={content_type}", headers=headers)
# Assert