Test SimStudioClient as context manager.
(mock_close)
| 88 | |
| 89 | @patch('simstudio.requests.Session.close') |
| 90 | def test_context_manager(mock_close): |
| 91 | """Test SimStudioClient as context manager.""" |
| 92 | with SimStudioClient(api_key="test-api-key") as client: |
| 93 | assert client.api_key == "test-api-key" |
| 94 | mock_close.assert_called_once() |
| 95 | |
| 96 | |
| 97 | @patch('simstudio.requests.Session.post') |
nothing calls this directly
no test coverage detected