Skip to content

Commit 110cac7

Browse files
committed
feat: improvements
1 parent b1856a7 commit 110cac7

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

sdk/klyne/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,6 @@ def _init_self_analytics():
4343
# This ensures the SDK still works even if analytics fail
4444
pass
4545

46-
# Initialize self-analytics when the module is imported
47-
_init_self_analytics()
46+
# Initialize self-analytics when the module is imported (skip during testing)
47+
if not os.getenv("KLYNE_TESTING", "false").lower() == "true":
48+
_init_self_analytics()

sdk/test_integration.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@
33
Integration test for Klyne SDK - verifies the complete flow works.
44
"""
55

6+
import os
67
import sys
78

9+
# Set testing environment before importing klyne
10+
os.environ["KLYNE_TESTING"] = "true"
11+
812
# Add the SDK to path
913
sys.path.insert(0, ".")
1014

0 commit comments

Comments
 (0)