Skip to content

Commit 93eb6a1

Browse files
Merge pull request #5 from keycardai/chore/test-structure
chore(keycardai-oauth): refactor test structure
2 parents 227f448 + cd7458f commit 93eb6a1

File tree

16 files changed

+19
-10
lines changed

16 files changed

+19
-10
lines changed

justfile

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,21 @@ 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+
14+
# Run tests for OAuth package
15+
test-oauth:
16+
cd packages/oauth && uv run --extra test pytest tests/ -v
17+
18+
# Run tests for a specific package
19+
test-package PACKAGE:
20+
cd packages/{{PACKAGE}} && uv run --extra test pytest tests/ -v
21+
22+
# Run a specific test file within a package
23+
test-file PACKAGE FILE:
24+
cd packages/{{PACKAGE}} && uv run --extra test pytest tests/{{FILE}} -v
1325

1426
check:
1527
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)