We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c015153 commit 3730c43Copy full SHA for 3730c43
cdp/cdp.py
@@ -95,7 +95,6 @@ def configure(
95
source,
96
source_version,
97
)
98
- # Replace the wrapper with the real api_clients instance
99
cls.api_clients = ApiClients(cdp_client)
100
101
@classmethod
tests/conftest.py
@@ -10,8 +10,11 @@
10
@pytest.fixture(autouse=True)
11
def initialize_cdp():
12
"""Initialize the CDP SDK with mock API clients before each test."""
13
+ original_api_clients = Cdp.api_clients
14
mock_api_clients = MagicMock(spec=ApiClients)
15
Cdp.api_clients = mock_api_clients
16
+ yield
17
+ Cdp.api_clients = original_api_clients
18
19
20
factory_modules = [
tests/test_cdp.py
@@ -1,4 +1,3 @@
1
-
2
import pytest
3
4
from cdp import Cdp
0 commit comments