Files
OpenBB/openbb_platform/extensions/platform_api/tests/conftest.py
Danglewood 6ca062bf86 [V5] openbb-platform-api: Refactor for V5 Spec, Config, Packaging, Test Coverage (#7494)
* stash some changes

* add more robust testing

* mypy

* point PR at V5

* introduce spec file

* codespell

* test fix

* fix workflow environment setup

* fix workflow environment setup

* fix workflow environment setup

* add pyyaml to dependencies

* split lint jobs

* fix workflow environment setup

* fix workflow environment setup

* workflow env setup

* workflow env setup

* clean up code comments

* add auth hook entrypoints

* codespell

* add codegen feature

* codespell

* move _unpack into dispatchers for consistency with codegen packages

* surface nested models in the response

* fix missing coverage in CI

* socrata updates

* test fix

* detect plotly output

* add --include and --exclude flags from generate-extension command

* refactor openbb-platform-api for V5 operations and spec file handling

* delete poetry.lock

* add test workflow

* add temp branch id for test workflow

* add httpx to dev dependencies

* add a conftest.py

* tweak conftest

* tweak conftest

* python 3.10 issues

* more python 3.10

* more python 3.10

* more python 3.10

* more python 3.10

* fix url template resolution

* multi-spec support

* fix a windows path issue

* cap test matrix at python 3.14

* no 3.15 runners for platform-api

* no useless comments

* platform controller command description split

* merge URL overloads from path params

* exclude none and unset from model dump

* markdown lint

* ignore get/post endpoints that are return SSE

* fix remaining fastapi 0.137 fallout

---------

Co-authored-by: deeleeramone <>
Co-authored-by: Copilot <copilot@github.com>
2026-06-20 20:23:23 -07:00

22 lines
763 B
Python

"""Test bootstrap for ``openbb-platform-api``."""
import sys
import openbb_core.api
import openbb_core.api.app_loader # noqa: F401
import openbb_core.api.exception_handlers # noqa: F401
import openbb_core.app.model
import openbb_core.app.model.credentials # noqa: F401
import openbb_core.app.service
import openbb_core.app.service.system_service # noqa: F401
import openbb_core.app.service.user_service # noqa: F401
for _parent, _children in (
("openbb_core.api", ("app_loader", "exception_handlers")),
("openbb_core.app.model", ("credentials",)),
("openbb_core.app.service", ("system_service", "user_service")),
):
_pkg = sys.modules[_parent]
for _child in _children:
setattr(_pkg, _child, sys.modules[f"{_parent}.{_child}"])