Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kirkbrauer committed Jan 23, 2025
1 parent 0d5c6e2 commit 41e837e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 12 deletions.
7 changes: 2 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PKG_TARGETS = $(subst packages/,pkg-,$(wildcard packages/*))
PKG_TARGETS = $(subst packages/,,$(wildcard packages/*))
EXAMPLE_TARGETS = $(subst examples/,example-,$(wildcard examples/*))
DOC_LISTEN ?= --host 127.0.0.1

Expand All @@ -13,10 +13,7 @@ serve-docs:
clean-docs:
uv run --isolated --all-packages --group docs $(MAKE) -C docs clean

test-jumpstarter:
uv run --isolated --package jumpstarter pytest jumpstarter tests

test-pkg-%: packages/%
test-%: packages/%
uv run --isolated --directory $< pytest

test-packages: $(addprefix test-,$(PKG_TARGETS))
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def test_client():
pass
2 changes: 2 additions & 0 deletions packages/jumpstarter-protocol/protocol_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def test_protocol():
pass
10 changes: 3 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,7 @@ docs = [
"sphinx-click>=6.0.0",
"sphinx-substitution-extensions>=2024.10.17",
]
dev = [
"ruff>=0.9.2",
"typos>=1.23.6",
"pre-commit>=3.8.0",
"esbonio>=0.16.5",
]
dev = ["ruff>=0.9.2", "typos>=1.23.6", "pre-commit>=3.8.0", "esbonio>=0.16.5"]

[tool.ruff]
exclude = ["packages/jumpstarter-protocol"]
Expand All @@ -56,6 +51,7 @@ locale = "en-us"

[tool.coverage.run]
omit = ["conftest.py", "test_*.py", "*_test.py", "*_pb2.py", "*_pb2_grpc.py"]
skip_empty = true

[tool.pytest.ini_options]
addopts = "--capture=no --verbose --cov --cov-report=html --cov-report=xml --cov-append"
addopts = "--capture=no --cov --cov-report=html --cov-report=xml --cov-append"

0 comments on commit 41e837e

Please sign in to comment.