Skip to content

Commit

Permalink
sqlite
Browse files Browse the repository at this point in the history
  • Loading branch information
tssweeney committed Jan 31, 2025
1 parent 39dbff8 commit c2d9e13
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/trace/test_scored_calls_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import pytest

import weave
from tests.trace.util import client_is_sqlite
from weave.scorers import Scorer
from weave.trace.op import Op
from weave.trace.weave_client import WeaveClient
Expand Down Expand Up @@ -177,6 +178,9 @@ def predict(x):

@pytest.mark.asyncio
async def test_scorer_query_op(client: WeaveClient):
if client_is_sqlite(client):
return pytest.skip("SQLite does not support querying feedback")

@weave.op
def fn0(x, output):
return x == output
Expand All @@ -197,6 +201,9 @@ def fn0(x, output):

@pytest.mark.asyncio
async def test_scorer_query_obj(client: WeaveClient):
if client_is_sqlite(client):
return pytest.skip("SQLite does not support querying feedback")

class MyScorer0(weave.Scorer):
offset: int

Expand Down

0 comments on commit c2d9e13

Please sign in to comment.