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

Function fresh_state

tests/api_utils/test_server_state.py:15–19  ·  view source on GitHub ↗

Provide a fresh ServerState instance for each test.

()

Source from the content-addressed store, hash-verified

13
14@pytest.fixture
15def fresh_state():
16 """Provide a fresh ServerState instance for each test."""
17 test_state = ServerState()
18 yield test_state
19 test_state.reset()
20
21
22def test_clear_debug_logs(fresh_state):

Callers

nothing calls this directly

Calls 2

resetMethod · 0.95
ServerStateClass · 0.90

Tested by

no test coverage detected