We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b1856a7 commit 110cac7Copy full SHA for 110cac7
sdk/klyne/__init__.py
@@ -43,5 +43,6 @@ def _init_self_analytics():
43
# This ensures the SDK still works even if analytics fail
44
pass
45
46
-# Initialize self-analytics when the module is imported
47
-_init_self_analytics()
+# Initialize self-analytics when the module is imported (skip during testing)
+if not os.getenv("KLYNE_TESTING", "false").lower() == "true":
48
+ _init_self_analytics()
sdk/test_integration.py
@@ -3,8 +3,12 @@
3
Integration test for Klyne SDK - verifies the complete flow works.
4
"""
5
6
+import os
7
import sys
8
9
+# Set testing environment before importing klyne
10
+os.environ["KLYNE_TESTING"] = "true"
11
+
12
# Add the SDK to path
13
sys.path.insert(0, ".")
14
0 commit comments