Skip to content

Commit 3675b5a

Browse files
drop getSystemStats probe and test (admin-only endpoint)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent fa1eb0c commit 3675b5a

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

tests/test_api.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)