From 41e837e6efeb59b4b263a97992295f6bcf7f5dfd Mon Sep 17 00:00:00 2001 From: Kirk Brauer Date: Thu, 23 Jan 2025 17:02:50 -0500 Subject: [PATCH] Fix tests --- Makefile | 7 ++----- .../jumpstarter_kubernetes/clients_test.py | 2 ++ packages/jumpstarter-protocol/protocol_test.py | 2 ++ pyproject.toml | 10 +++------- 4 files changed, 9 insertions(+), 12 deletions(-) create mode 100644 packages/jumpstarter-kubernetes/jumpstarter_kubernetes/clients_test.py create mode 100644 packages/jumpstarter-protocol/protocol_test.py diff --git a/Makefile b/Makefile index 3df44175..57269d28 100644 --- a/Makefile +++ b/Makefile @@ -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 @@ -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)) diff --git a/packages/jumpstarter-kubernetes/jumpstarter_kubernetes/clients_test.py b/packages/jumpstarter-kubernetes/jumpstarter_kubernetes/clients_test.py new file mode 100644 index 00000000..7641b8e6 --- /dev/null +++ b/packages/jumpstarter-kubernetes/jumpstarter_kubernetes/clients_test.py @@ -0,0 +1,2 @@ +def test_client(): + pass diff --git a/packages/jumpstarter-protocol/protocol_test.py b/packages/jumpstarter-protocol/protocol_test.py new file mode 100644 index 00000000..a097381b --- /dev/null +++ b/packages/jumpstarter-protocol/protocol_test.py @@ -0,0 +1,2 @@ +def test_protocol(): + pass diff --git a/pyproject.toml b/pyproject.toml index 6baf0da6..2745c2cb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"] @@ -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"