File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ """Test example - validates SDK initialization and module access."""
2+
3+ import os
4+ from dotenv import load_dotenv
5+ from steadfast import SteadfastClient
6+
7+ load_dotenv ()
8+
9+ # Initialize client
10+ client = SteadfastClient (
11+ api_key = os .getenv ("STEADFAST_API_KEY" ),
12+ secret_key = os .getenv ("STEADFAST_SECRET_KEY" ),
13+ )
14+
15+ print ("✓ Steadfast SDK Test Results" )
16+ print ("=" * 50 )
17+ print ("✓ Client initialized successfully" )
18+ print (f"✓ Orders module accessible: { type (client .orders ).__name__ } " )
19+ print (f"✓ Tracking module accessible: { type (client .tracking ).__name__ } " )
20+ print (f"✓ Balance module accessible: { type (client .balance ).__name__ } " )
21+ print (f"✓ Returns module accessible: { type (client .returns ).__name__ } " )
22+ print (f"✓ Payments module accessible: { type (client .payments ).__name__ } " )
23+ print (f"✓ Locations module accessible: { type (client .locations ).__name__ } " )
24+ print ("=" * 50 )
25+ print ("All modules initialized successfully!" )
You can’t perform that action at this time.
0 commit comments