Tests for BaseAPI initialization.
| 47 | |
| 48 | |
| 49 | class 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 | |
| 71 | class TestBaseAPIAllowedTypes: |
nothing calls this directly
no outgoing calls
no test coverage detected