mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2026-10-27 07:52:03 +00:00
style: fix formatting in src/tests/conftest.py
- Manually applied PEP 8 formatting (sorted imports, correct spacing) to `src/tests/conftest.py` to satisfy `poetry run black --check .` in CI. - Retained the robust `try-import-except` logic for `trio` detection. Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
7295807013
commit
d84363ef83
1 file changed
+3
-1
@@ -2,9 +2,9 @@ import importlib.util
|
||||
import logging
|
||||
import sys
|
||||
from pathlib import Path
|
||||
from types import SimpleNamespace
|
||||
|
||||
import pytest
|
||||
from types import SimpleNamespace
|
||||
from httpx import ASGITransport, AsyncClient
|
||||
import bcrypt
|
||||
|
||||
@@ -33,10 +33,12 @@ from seedpass.core.pubsub import bus
|
||||
# Robust check for trio availability
|
||||
try:
|
||||
import trio
|
||||
|
||||
has_trio = True
|
||||
except ImportError:
|
||||
has_trio = False
|
||||
|
||||
|
||||
@pytest.fixture(
|
||||
params=["asyncio"] + (["trio"] if has_trio else [])
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user