Skip to content

Commit 3730c43

Browse files
Fix
1 parent c015153 commit 3730c43

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

cdp/cdp.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ def configure(
9595
source,
9696
source_version,
9797
)
98-
# Replace the wrapper with the real api_clients instance
9998
cls.api_clients = ApiClients(cdp_client)
10099

101100
@classmethod

tests/conftest.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,11 @@
1010
@pytest.fixture(autouse=True)
1111
def initialize_cdp():
1212
"""Initialize the CDP SDK with mock API clients before each test."""
13+
original_api_clients = Cdp.api_clients
1314
mock_api_clients = MagicMock(spec=ApiClients)
1415
Cdp.api_clients = mock_api_clients
16+
yield
17+
Cdp.api_clients = original_api_clients
1518

1619

1720
factory_modules = [

tests/test_cdp.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import pytest
32

43
from cdp import Cdp

0 commit comments

Comments
 (0)