MCPcopy Create free account
hub / github.com/MemTensor/MemOS / test_download_examples_error

Method test_download_examples_error

tests/test_cli.py:74–80  ·  view source on GitHub ↗

Test download examples when request fails.

(self, mock_requests)

Source from the content-addressed store, hash-verified

72
73 @patch("requests.get")
74 def test_download_examples_error(self, mock_requests):
75 """Test download examples when request fails."""
76 mock_requests.side_effect = requests.RequestException("Network error")
77
78 result = download_examples("/test/dest")
79
80 assert result is False
81
82
83class TestMainCLI:

Callers

nothing calls this directly

Calls 1

download_examplesFunction · 0.90

Tested by

no test coverage detected