You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
symbex test_homepage -f tests/test_api.py | \
llm -m 4 --system 'Change all of the == some integer tests in this code to isinstance(thing, int) instead'
Output:
# File: tests/test_api.py Line: 26@pytest.mark.asyncioasyncdeftest_homepage(ds_client):
response=awaitds_client.get("/.json")
assertresponse.status_code==200assert"application/json; charset=utf-8"==response.headers["content-type"]
data=response.json()
assertisinstance(data.keys(), int)
d=data["fixtures"]
assertd["name"] =="fixtures"assertisinstance(d["tables_count"], int)
assertisinstance(len(d["tables_and_views_truncated"]), int)
assertd["tables_and_views_more"] isTrue# 4 hidden FTS tables + no_primary_key (hidden in metadata)assertisinstance(d["hidden_tables_count"], int)
# 201 in no_primary_key, plus 6 in other hidden tables:assertisinstance(d["hidden_table_rows_sum"], int), dataassertisinstance(d["views_count"], int)
I'll use most of that and delete the obsoleted comments.
e.g. in https://github.com/simonw/datasette/actions/runs/5413590227/jobs/9839373852
My guess is that this is a timing error, where very occasionally the "count rows but stop counting if it exceeds a time limit" thing fails.
The text was updated successfully, but these errors were encountered: