mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-05 08:51:20 +00:00
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:
@@ -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",
|
||||
[
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user