MCPcopy Create free account
hub / github.com/dbcli/mycli / patch_constructor_side_effects

Function patch_constructor_side_effects

test/pytests/test_client.py:20–24  ·  view source on GitHub ↗
(monkeypatch: pytest.MonkeyPatch)

Source from the content-addressed store, hash-verified

18
19
20def patch_constructor_side_effects(monkeypatch: pytest.MonkeyPatch) -> None:
21 monkeypatch.setattr(MyCli, 'system_config_files', [])
22 monkeypatch.setattr(MyCli, 'initialize_logging', lambda self: None)
23 monkeypatch.setattr(MyCli, 'register_special_commands', lambda self: None)
24 monkeypatch.setattr(client_module, 'get_mylogin_cnf_path', lambda: None)
25
26
27def test_init_reports_invalid_ssl_mode(monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None:

Calls

no outgoing calls

Tested by

no test coverage detected