Skip to content

Commit 948bb2c

Browse files
committed
chore(keycardai-oauth): refactor test structure
1 parent 130286d commit 948bb2c

16 files changed

Lines changed: 24 additions & 10 deletions

File tree

justfile

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,26 @@ dev-setup:
77
build:
88
uv sync --all-packages
99

10-
# Run tests
10+
# Run tests for all packages
1111
test: build
12-
uv run --frozen pytest
12+
just test-oauth
13+
just test-mcp
14+
15+
# Run tests for OAuth package
16+
test-oauth:
17+
cd packages/oauth && uv run --extra test pytest tests/ -v
18+
19+
# Run tests for MCP package
20+
test-mcp:
21+
cd packages/mcp && uv run --extra test pytest tests/ -v
22+
23+
# Run tests for a specific package
24+
test-package PACKAGE:
25+
cd packages/{{PACKAGE}} && uv run --extra test pytest tests/ -v
26+
27+
# Run a specific test file within a package
28+
test-file PACKAGE FILE:
29+
cd packages/{{PACKAGE}} && uv run --extra test pytest tests/{{FILE}} -v
1330

1431
check:
1532
uv run ruff check

packages/oauth/src/keycardai/__init__.py

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"""Tests for keycardai namespace."""
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"""Tests for keycardai.oauth package."""
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"""Tests for keycardai.oauth.operations package."""

packages/oauth/tests/operations/test_discovery.py renamed to packages/oauth/tests/keycardai/oauth/operations/test_discovery.py

File renamed without changes.

packages/oauth/tests/operations/test_registration.py renamed to packages/oauth/tests/keycardai/oauth/operations/test_registration.py

File renamed without changes.

packages/oauth/tests/operations/test_token_exchange.py renamed to packages/oauth/tests/keycardai/oauth/operations/test_token_exchange.py

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)