Skip to content

Commit

Permalink
use file output in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zeke committed Oct 9, 2024
1 parent eb72919 commit b9d803c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,20 @@ async def test_run(async_flag, record_mode):
output = await replicate.async_run(
f"stability-ai/sdxl:{version}",
input=input,
use_file_output=True,
)
else:
output = replicate.run(
f"stability-ai/sdxl:{version}",
input=input,
use_file_output=True,
)

assert output is not None
assert isinstance(output, list)
assert len(output) > 0
assert output[0].startswith("https://")
assert isinstance(output[0], FileOutput)
assert output[0].url.startswith("https://")


@pytest.mark.vcr("run__concurrently.yaml")
Expand Down

0 comments on commit b9d803c

Please sign in to comment.