MCPcopy Create free account
hub / github.com/Open-Bee/DataStudio / TestBaseAPIInit

Class TestBaseAPIInit

tests/models/test_base_api.py:49–68  ·  view source on GitHub ↗

Tests for BaseAPI initialization.

Source from the content-addressed store, hash-verified

47
48
49class TestBaseAPIInit:
50 """Tests for BaseAPI initialization."""
51
52 def test_init_with_defaults(self):
53 """Test initialization with default parameters."""
54 api = ConcreteAPI()
55 assert api.retry == 10
56 assert api.wait == 5
57
58 def test_init_with_custom_params(self):
59 """Test initialization with custom parameters."""
60 api = ConcreteAPI(retry=5, wait=2, timeout=60)
61 assert api.retry == 5
62 assert api.wait == 2
63 assert api.timeout == 60
64
65 def test_init_with_system_proxy(self):
66 """Test initialization with system proxy enabled."""
67 api = ConcreteAPI(use_system_proxy=True)
68 assert api.use_system_proxy is True
69
70
71class TestBaseAPIAllowedTypes:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected