Skip to content

Commit db27483

Browse files
committed
Module name in Python project file
1 parent 4c2b26c commit db27483

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ dependencies = [
2525
# Used for HTTP service base
2626
"fastapi>=0.115.12",
2727
"uvicorn>=0.34.3",
28-
# Used by auth/k8s integration
28+
# Used by authentication/k8s integration
2929
"kubernetes>=30.1.0",
3030
# Used to call Llama Stack APIs
3131
"llama-stack==0.2.19",
@@ -58,7 +58,7 @@ exclude = [
5858
# TODO(lucasagomes): This module was copied from road-core
5959
# service/ols/src/auth/k8s.py and currently has 58 Pyright issues. It
6060
# might need to be rewritten down the line.
61-
"src/auth/k8s.py",
61+
"src/authentication/k8s.py",
6262
]
6363
extraPaths = ["./src"]
6464

src/authentication/noop_with_token.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Intended for local/dev use only — do not use in production.
44
55
Behavior:
6-
- Reads a user token from request headers via `auth.utils.extract_user_token`.
6+
- Reads a user token from request headers via `authentication.utils.extract_user_token`.
77
- Reads `user_id` from query params (falls back to `DEFAULT_USER_UID`) and
88
pairs it with `DEFAULT_USER_NAME`.
99
- Returns a tuple: (user_id, DEFAULT_USER_NAME, user_token).

tests/unit/authentication/test_auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Unit tests for functions defined in auth/__init__.py"""
1+
"""Unit tests for functions defined in authentication/__init__.py"""
22

33
from authentication import get_auth_dependency
44
from authentication import noop, noop_with_token, k8s

tests/unit/authentication/test_jwk_token.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# pylint: disable=redefined-outer-name
22

3-
"""Unit tests for functions defined in auth/jwk_token.py"""
3+
"""Unit tests for functions defined in authentication/jwk_token.py"""
44

55
import time
66

tests/unit/authentication/test_k8s.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Unit tests for auth/k8s module."""
1+
"""Unit tests for authentication/k8s module."""
22

33
# pylint: disable=too-many-arguments,too-many-positional-arguments,too-few-public-methods,protected-access
44

tests/unit/authentication/test_noop.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Unit tests for functions defined in auth/noop.py"""
1+
"""Unit tests for functions defined in authentication/noop.py"""
22

33
from fastapi import Request
44
from authentication.noop import NoopAuthDependency

tests/unit/authentication/test_noop_with_token.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Unit tests for functions defined in auth/noop_with_token.py"""
1+
"""Unit tests for functions defined in authentication/noop_with_token.py"""
22

33
from fastapi import Request, HTTPException
44
import pytest

tests/unit/authentication/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Unit tests for functions defined in auth/utils.py"""
1+
"""Unit tests for functions defined in authentication/utils.py"""
22

33
from fastapi import HTTPException
44
from starlette.datastructures import Headers

0 commit comments

Comments
 (0)