Re-enable testing search and update API with image content type

It may have been disabled due to issues with image search earlier
This commit is contained in:
Debanjum Singh Solanky
2023-02-28 19:31:16 -06:00
parent 88a9eadfba
commit ede6eb6879

View File

@@ -33,7 +33,7 @@ def test_search_with_invalid_content_type(client):
# ----------------------------------------------------------------------------------------------------
def test_search_with_valid_content_type(client):
for content_type in ["org", "markdown", "ledger", "music", "plugin1"]:
for content_type in ["org", "markdown", "ledger", "image", "music", "plugin1"]:
# Act
response = client.get(f"/api/search?q=random&t={content_type}")
# Assert
@@ -51,7 +51,7 @@ def test_update_with_invalid_content_type(client):
# ----------------------------------------------------------------------------------------------------
def test_update_with_valid_content_type(client):
for content_type in ["org", "markdown", "ledger", "music", "plugin1"]:
for content_type in ["org", "markdown", "ledger", "image", "music", "plugin1"]:
# Act
response = client.get(f"/api/update?t={content_type}")
# Assert
@@ -69,7 +69,7 @@ def test_regenerate_with_invalid_content_type(client):
# ----------------------------------------------------------------------------------------------------
def test_regenerate_with_valid_content_type(client):
for content_type in ["org", "markdown", "ledger", "music", "image", "plugin1"]:
for content_type in ["org", "markdown", "ledger", "image", "music", "plugin1"]:
# Act
response = client.get(f"/api/update?force=true&t={content_type}")
# Assert