MCPcopy Create free account
hub / github.com/AI-Hypercomputer/maxtext / test_monitor_goodput

Method test_monitor_goodput

tests/goodput_utils_test.py:71–76  ·  view source on GitHub ↗
(self, mock_start_goodput_uploader, mock_stop_goodput_uploader)

Source from the content-addressed store, hash-verified

69 @mock.patch("ml_goodput_measurement.monitoring.GoodputMonitor.stop_goodput_uploader")
70 @mock.patch("ml_goodput_measurement.monitoring.GoodputMonitor.start_goodput_uploader")
71 def test_monitor_goodput(self, mock_start_goodput_uploader, mock_stop_goodput_uploader):
72 mock_start_goodput_uploader.return_value = mock.MagicMock()
73
74 with maybe_monitor_goodput(self.config):
75 mock_start_goodput_uploader.assert_called()
76 mock_stop_goodput_uploader.assert_called()
77
78
79if __name__ == "__main__":

Callers

nothing calls this directly

Calls 1

maybe_monitor_goodputFunction · 0.90

Tested by

no test coverage detected