50 lines
3.7 KiB
Plaintext
50 lines
3.7 KiB
Plaintext
SQLite 3.53.1: trigram short LIKE rows=1; short MATCH=0
|
|
............................/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-829-8ee8ba59fefd/workdir/CyberGril/.venv312/lib/python3.12/site-packages/fastapi/testclient.py:1: StarletteDeprecationWarning: Using `httpx` with `starlette.testclient` is deprecated; install `httpx2` instead.
|
|
from starlette.testclient import TestClient as TestClient # noqa
|
|
/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-829-8ee8ba59fefd/workdir/CyberGril/.venv312/lib/python3.12/site-packages/fastapi/testclient.py:1: StarletteDeprecationWarning: Using `httpx` with `starlette.testclient` is deprecated; install `httpx2` instead.
|
|
from starlette.testclient import TestClient as TestClient # noqa
|
|
F..
|
|
=================================== FAILURES ===================================
|
|
_______________ test_three_endpoint_bytes_equal_product_baseline _______________
|
|
|
|
tmp_path = PosixPath('/tmp/multica-task-987541943/pytest-of-xiaomo/pytest-7/test_three_endpoint_bytes_equa0')
|
|
|
|
def test_three_endpoint_bytes_equal_product_baseline(tmp_path):
|
|
import os
|
|
import sys
|
|
from pathlib import Path
|
|
root = Path(__file__).resolve().parents[1]
|
|
old = tmp_path / 'baseline'
|
|
old.mkdir()
|
|
# Exact tracked source extraction only; no databases or runtime configuration.
|
|
files = subprocess.check_output(['git', 'ls-tree', '-r', '--name-only', BASE, 'src/']).decode().splitlines()
|
|
for name in files:
|
|
target = old / name
|
|
target.parent.mkdir(parents=True, exist_ok=True)
|
|
target.write_bytes(subprocess.check_output(['git', 'show', f'{BASE}:{name}']))
|
|
results = []
|
|
for index, source in enumerate((old / 'src', root / 'src')):
|
|
data = tmp_path / f'data-{index}'
|
|
data.mkdir()
|
|
env = dict(os.environ, PYTHONPATH=os.pathsep.join((str(source), str(root / 'tests'))))
|
|
results.append(subprocess.check_output([sys.executable, str(root / 'tests/r3_baseline_probe.py'), str(data)],
|
|
cwd=root, env=env, text=True))
|
|
> assert json.loads(results[0]) == json.loads(results[1])
|
|
E AssertionError: assert {'fingerprint...634357d5d7d'}} == {'fingerprint...937327d5d7d'}}
|
|
E
|
|
E Omitting 1 identical items, use -vv to show
|
|
E Differing items:
|
|
E {'responses': {'/api/life': '7b226576656e7473223a5b7b226964223a312c227473223a313739323739323830303030302c226b696e64223...2268616c6f67656e2d7177656e332e382d666c6173682d6e657874222c22637265617465645f6174223a313739323831383232333634357d5d7d'}} != {'responses': {'/api/life': '7b226576656e7473223a5b7b226964223a312c227473223a313739323739323830303030302c226b696e64223...2268616c6f67656e2d7177656e332e382d666c6173682d6e657874222c22637265617465645f6174223a313739323831383232333937327d5d7d'}}
|
|
E Use -v to get more diff
|
|
|
|
tests/test_r3.py:440: AssertionError
|
|
=============================== warnings summary ===============================
|
|
../../../hel-829-8ee8ba59fefd/workdir/CyberGril/.venv312/lib/python3.12/site-packages/fastapi/testclient.py:1
|
|
/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-829-8ee8ba59fefd/workdir/CyberGril/.venv312/lib/python3.12/site-packages/fastapi/testclient.py:1: StarletteDeprecationWarning: Using `httpx` with `starlette.testclient` is deprecated; install `httpx2` instead.
|
|
from starlette.testclient import TestClient as TestClient # noqa
|
|
|
|
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
|
|
=========================== short test summary info ============================
|
|
FAILED tests/test_r3.py::test_three_endpoint_bytes_equal_product_baseline - A...
|
|
1 failed, 30 passed, 1 warning in 2.14s
|