Skip to content

Commit

Permalink
Skip tests if CICD doesn't populate the secrets (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
logan-markewich authored Apr 14, 2024
1 parent b91f86b commit f679e1c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/test_reader.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import os
import pytest
from llama_parse import LlamaParse


@pytest.mark.skipif(
os.environ.get("LLAMA_CLOUD_API_KEY", "") == "",
reason="LLAMA_CLOUD_API_KEY not set",
)
def test_simple_page_text() -> None:
parser = LlamaParse(result_type="text")

Expand All @@ -13,6 +18,10 @@ def test_simple_page_text() -> None:
assert len(result[0].text) > 0


@pytest.mark.skipif(
os.environ.get("LLAMA_CLOUD_API_KEY", "") == "",
reason="LLAMA_CLOUD_API_KEY not set",
)
def test_simple_page_markdown() -> None:
parser = LlamaParse(result_type="markdown")

Expand All @@ -24,6 +33,10 @@ def test_simple_page_markdown() -> None:
assert len(result[0].text) > 0


@pytest.mark.skipif(
os.environ.get("LLAMA_CLOUD_API_KEY", "") == "",
reason="LLAMA_CLOUD_API_KEY not set",
)
def test_simple_page_progress_workers() -> None:
parser = LlamaParse(result_type="markdown", show_progress=True, verbose=True)

Expand Down

0 comments on commit f679e1c

Please sign in to comment.