mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-06 23:09:55 +01:00
12 lines
288 B
Python
12 lines
288 B
Python
import mock
|
|
|
|
from dvc.main import main
|
|
|
|
|
|
@mock.patch("dvc.analytics.collect")
|
|
@mock.patch("dvc.analytics.send")
|
|
def test_daemon_analytics(mock_collect, mock_send, tmp_path):
|
|
assert 0 == main(["daemon", "analytics", None, 0])
|
|
assert mock_collect.called
|
|
assert mock_send.called
|