MCPcopy Create free account
hub / github.com/ceph/ceph / system

Function system

src/ceph-node-proxy/tests/test_baseredfishsystem.py:20–35  ·  view source on GitHub ↗
(mock_client, mock_endpoints)

Source from the content-addressed store, hash-verified

18
19@pytest.fixture
20def system(mock_client, mock_endpoints):
21 with (
22 patch(
23 "ceph_node_proxy.baseredfishsystem.RedFishClient", return_value=mock_client
24 ),
25 patch(
26 "ceph_node_proxy.baseredfishsystem.EndpointMgr", return_value=mock_endpoints
27 ),
28 ):
29 return BaseRedfishSystem(
30 host="testhost",
31 port="443",
32 username="user",
33 password="secret",
34 config={},
35 )
36
37
38class TestBaseRedfishSystemInit:

Callers 11

entryMethod · 0.85
remount_cbFunction · 0.85
TESTFunction · 0.85
mainFunction · 0.85
rm_rMethod · 0.85
rm_rMethod · 0.85
rm_rMethod · 0.85
rm_rMethod · 0.85
rm_rFunction · 0.85
run_commandFunction · 0.85

Calls 1

BaseRedfishSystemClass · 0.90

Tested by

no test coverage detected