Skip to content

Commit 3269e41

Browse files
committed
Maybe fix tests?
1 parent 98d0a21 commit 3269e41

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ lint: ## check style with ruff and black
5454
test: ## run tests quickly with the default Python
5555
pdm run pytest -x --ff -n auto tests
5656

57-
5857
test-all: ## run tests on every Python version with tox
5958
tox
6059

@@ -78,7 +77,7 @@ servedocs: docs ## compile the docs watching for changes
7877
watchmedo shell-command -p '*.rst' -c '$(MAKE) -C docs html' -R -D .
7978

8079
bench-cmp:
81-
pytest bench --benchmark-compare
80+
pytest --benchmark-sort=fullname --benchmark-warmup=true --benchmark-warmup-iterations=5 --benchmark-group-by=fullname bench --benchmark-compare
8281

8382
bench:
84-
pytest bench --benchmark-save base
83+
pytest --benchmark-sort=fullname --benchmark-warmup=true --benchmark-warmup-iterations=5 --benchmark-group-by=fullname bench --benchmark-save base

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ bson = [
100100
]
101101

102102
[tool.pytest.ini_options]
103-
addopts = "-l --mypy-only-local-stub --benchmark-sort=fullname --benchmark-warmup=true --benchmark-warmup-iterations=5 --benchmark-group-by=fullname"
103+
addopts = "-l"
104104

105105
[tool.coverage.run]
106106
parallel = true

tox.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ wheel_build_env = .pkg
4040
commands_pre =
4141
pdm install -G :all,test,tests-mypy
4242
python -c 'import pathlib; pathlib.Path("{env_site_packages_dir}/cov.pth").write_text("import coverage; coverage.process_startup()")'
43+
commands =
44+
coverage run -m pytest tests {posargs:-n auto --mypy-only-local-stub}
4345

4446
[testenv:pypy3]
4547
setenv =

0 commit comments

Comments
 (0)