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

Method tearDown

tests/test_request_queueing.py:41–46  ·  view source on GitHub ↗

Clean up after each test

(self)

Source from the content-addressed store, hash-verified

39 self.assertTrue(GlobalState.AUTH_ROTATION_LOCK.is_set())
40
41 def tearDown(self):
42 """Clean up after each test"""
43 # Reset to initial state
44 GlobalState.reset_quota_status()
45 GlobalState.init_rotation_lock()
46 GlobalState.queued_request_count = 0
47
48 def test_request_immediate_when_lock_set(self):
49 """Test that requests pass through immediately when AUTH_ROTATION_LOCK is set"""

Callers

nothing calls this directly

Calls 2

reset_quota_statusMethod · 0.80
init_rotation_lockMethod · 0.80

Tested by

no test coverage detected