MCPcopy Create free account
hub / github.com/AutoPackAI/autopack / test_get_pack_invalid_class

Function test_get_pack_invalid_class

tests/test_get_pack.py:85–92  ·  view source on GitHub ↗
(mock_get_pack_details, pack_response_invalid_class)

Source from the content-addressed store, hash-verified

83
84@patch("autopack.get_pack.get_pack_details")
85def test_get_pack_invalid_class(mock_get_pack_details, pack_response_invalid_class):
86 pack_id = "invalidclass"
87 mock_get_pack_details.return_value = pack_response_invalid_class
88
89 with pytest.raises(AutoPackLoadError):
90 get_pack(pack_id)
91
92 mock_get_pack_details.assert_called_once_with(pack_id, remote=False)
93
94
95@patch("autopack.get_pack.get_pack_details")

Callers

nothing calls this directly

Calls 1

get_packFunction · 0.90

Tested by

no test coverage detected