mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
analytics: send report without loading it to memory
shout-out to @Suor for the suggestion
This commit is contained in:
@@ -34,7 +34,8 @@ def test_send(mock_post, tmp_path):
|
||||
|
||||
fname.write_text(str(json.dumps(report)))
|
||||
analytics.send(fname)
|
||||
mock_post.assert_called_with(url, json=report, timeout=5)
|
||||
assert mock_post.called
|
||||
assert mock_post.call_args.args[0] == url
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
|
||||
Reference in New Issue
Block a user