Skip to content

Commit 7426a62

Browse files
author
Mr. Outis
committed
tests: analytics, use dir helpers
1 parent fd62ba8 commit 7426a62

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/func/test_analytics.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ def test_daemon_analytics(mock_send, tmp_path):
1414

1515
@mock.patch("dvc.analytics.collect_and_send_report")
1616
@mock.patch("dvc.analytics.is_enabled", return_value=True)
17-
def test_main_analytics(mock_is_enabled, mock_report, dvc_repo):
17+
def test_main_analytics(mock_is_enabled, mock_report, tmp_dir, dvc):
18+
tmp_dir.gen("foo")
1819
assert 0 == main(["add", "foo"])
1920
assert mock_is_enabled.called
2021
assert mock_report.called

0 commit comments

Comments
 (0)