Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 9, 2024
1 parent b8be1dd commit e90d0ea
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions diracx-testing/src/diracx/testing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ def __init__(
from diracx.core.config import ConfigSource
from diracx.core.extensions import select_from_extension
from diracx.core.settings import ServiceSettingsBase
from diracx.db.sql.utils import BaseSQLDB
from diracx.db.os.utils import BaseOSDB
from diracx.db.sql.utils import BaseSQLDB
from diracx.routers import create_app_inner
from diracx.routers.access_policies import BaseAccessPolicy

Expand Down Expand Up @@ -200,7 +200,13 @@ def enrich_tokens(access_payload: dict, refresh_payload: dict):
for obj in self.all_dependency_overrides:
assert issubclass(
obj.__self__,
(ServiceSettingsBase, BaseSQLDB, BaseOSDB, ConfigSource, BaseAccessPolicy),
(
ServiceSettingsBase,
BaseSQLDB,
BaseOSDB,
ConfigSource,
BaseAccessPolicy,
),
), obj

self.all_lifetime_functions = self.app.lifetime_functions[:]
Expand Down

0 comments on commit e90d0ea

Please sign in to comment.