MCPcopy Create free account
hub / github.com/CJackHwang/AIstudioProxyAPI / setUp

Method setUp

tests/test_request_queueing.py:31–39  ·  view source on GitHub ↗

Initialize test environment before each test

(self)

Source from the content-addressed store, hash-verified

29 """Test suite for Request Queueing functionality"""
30
31 def setUp(self):
32 """Initialize test environment before each test"""
33 # Reset global state to clean slate
34 GlobalState.reset_quota_status()
35 GlobalState.init_rotation_lock()
36 GlobalState.queued_request_count = 0
37
38 # Ensure AUTH_ROTATION_LOCK is initially set (open)
39 self.assertTrue(GlobalState.AUTH_ROTATION_LOCK.is_set())
40
41 def tearDown(self):
42 """Clean up after each test"""

Callers

nothing calls this directly

Calls 2

reset_quota_statusMethod · 0.80
init_rotation_lockMethod · 0.80

Tested by

no test coverage detected