Skip to content

Commit

Permalink
Remove large file from repo
Browse files Browse the repository at this point in the history
  • Loading branch information
nqn committed Jun 12, 2024
1 parent 4c5ed79 commit 6bcf754
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test_magentic.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from log10.load import log10, log10_session
from tests.utils import _LogAssertion, format_magentic_function_args

import os

log10(openai)

Expand Down Expand Up @@ -192,6 +193,15 @@ async def _generate_title_and_description(query: str, widget_data: str) -> Widge
@pytest.mark.widget
@pytest.mark.asyncio(scope="module")
async def test_large_image_upload(session, magentic_model):
# If large_image.png doesn't exist, download it from https://log10py-public.s3.us-east-2.amazonaws.com/large_image.png
if not os.path.exists("./tests/large_image.png"):
import requests

url = "https://log10py-public.s3.us-east-2.amazonaws.com/large_image.png"
response = requests.get(url)
with open("./tests/large_image.png", "wb") as f:
f.write(response.content)

with open("./tests/large_image.png", "rb") as f:
image_bytes = f.read()

Expand Down

0 comments on commit 6bcf754

Please sign in to comment.