Introduce integration test modularity (#5865)

* Introduce integration test modularity

* Fix Python 3.9 error

* Add TODO

* Update generators

* Handle endpoints that only feature one provider that is not installed

* Fix failing unit test
This commit is contained in:
Igor Radovanovic
2023-12-06 20:39:39 +01:00
committed by GitHub
parent 1a6c540cf6
commit 3d2a9cdb9a
33 changed files with 626 additions and 493 deletions

View File

@@ -1,6 +1,7 @@
"""Test crypto extension."""
import pytest
from extensions.tests.conftest import parametrize
from openbb_core.app.model.obbject import OBBject
# pylint: disable=redefined-outer-name
@@ -15,7 +16,7 @@ def obb(pytestconfig): # pylint: disable=inconsistent-return-statements
return openbb.obb
@pytest.mark.parametrize(
@parametrize(
"params",
[
({"query": "asd"}),
@@ -32,7 +33,7 @@ def test_crypto_search(params, obb):
assert len(result.results) > 0
@pytest.mark.parametrize(
@parametrize(
"params",
[
(