fix numpy handling
This commit is contained in:
parent
05e93fbd9a
commit
f3deff5a6d
@ -431,6 +431,9 @@ def handle_test_env() -> None:
|
||||
# We do not want the default client_context to be initialized.
|
||||
write_env("DISABLE_CONTEXT")
|
||||
|
||||
if test_name == "numpy":
|
||||
UV_ARGS.append("--with numpy")
|
||||
|
||||
if test_name == "perf":
|
||||
data_dir = ROOT / "specifications/source/benchmarking/data"
|
||||
if not data_dir.exists():
|
||||
|
||||
@ -44,6 +44,7 @@ TEST_SUITE_MAP = {
|
||||
"mockupdb": "mockupdb",
|
||||
"ocsp": "ocsp",
|
||||
"perf": "perf",
|
||||
"numpy": "",
|
||||
}
|
||||
|
||||
# Tests that require a sub test suite.
|
||||
|
||||
9
justfile
9
justfile
@ -60,12 +60,9 @@ test *args="-v --durations=5 --maxfail=10": && resync
|
||||
uv run --extra test python -m pytest {{args}}
|
||||
|
||||
[group('test')]
|
||||
test-numpy: && resync
|
||||
if [ "${COVERAGE:-}" = "1" ]; then \
|
||||
uv run --extra test --group coverage --with numpy coverage run -m pytest test/test_bson.py; \
|
||||
else \
|
||||
uv run --extra test --with numpy python -m pytest test/test_bson.py; \
|
||||
fi
|
||||
test-numpy *args="": && resync
|
||||
just setup-tests numpy {{args}}
|
||||
just run-tests test/test_bson.py
|
||||
|
||||
[group('test')]
|
||||
run-tests *args: && resync
|
||||
|
||||
Loading…
Reference in New Issue
Block a user