chore: move pytest fixture plugin + update fixture module structure

This commit is contained in:
2026-01-28 07:29:34 -05:00
parent 45001767aa
commit 53e80cd0d5
7 changed files with 165 additions and 166 deletions

View File

@@ -1,11 +1,6 @@
from .fixtures import (
Context,
FixtureRegistry,
LoadStrategy,
load_fixtures,
load_fixtures_by_context,
)
from .utils import get_obj_by_attr
from .enum import LoadStrategy
from .registry import Context, FixtureRegistry
from .utils import get_obj_by_attr, load_fixtures, load_fixtures_by_context
__all__ = [
"Context",
@@ -16,12 +11,3 @@ __all__ = [
"load_fixtures_by_context",
"register_fixtures",
]
# We lazy-load register_fixtures to avoid needing pytest when using fixtures CLI
def __getattr__(name: str):
if name == "register_fixtures":
from .pytest_plugin import register_fixtures
return register_fixtures
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")