@@ -50,16 +50,6 @@ def setUpClass(cls):
5050 # Initialize API client
5151 cls .api = DatabunkerproAPI (cls .api_url , cls .api_token , cls .tenant_name )
5252
53- # Test connection
54- try :
55- result = cls .api .get_system_stats ()
56- if not (isinstance (result , dict ) and result .get ("status" ) == "ok" ):
57- raise unittest .SkipTest ("Failed to connect to DatabunkerPro server" )
58- except Exception as e :
59- raise unittest .SkipTest (
60- f"Failed to connect to DatabunkerPro server: { str (e )} "
61- )
62-
6353 def test_create_user (self ):
6454 """Test user creation."""
6555 user_data = {
@@ -151,13 +141,6 @@ def test_delete_user(self):
151141 self .assertIsInstance (result , dict )
152142 self .assertEqual (result .get ("status" ), "ok" )
153143
154- def test_get_system_stats (self ):
155- """Test getting system statistics."""
156- result = self .api .get_system_stats ()
157- self .assertIsInstance (result , dict )
158- self .assertEqual (result .get ("status" ), "ok" )
159- self .assertIn ("stats" , result )
160-
161144 def test_bulk_operations_workflow (self ):
162145 """Test complete bulk operations workflow: create users, unlock bulk, and fetch all users."""
163146 # Step 1: Create 10 users using bulk creation
0 commit comments