mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
15 lines
374 B
Python
15 lines
374 B
Python
import mock
|
|
from unittest import TestCase
|
|
|
|
from dvc.progress import ProgressCallback
|
|
|
|
|
|
class TestProgressCallback(TestCase):
|
|
@mock.patch("dvc.progress.progress")
|
|
def test_should_init_reset_progress(self, progress_mock):
|
|
total_files_num = 1
|
|
|
|
ProgressCallback(total_files_num)
|
|
|
|
self.assertEqual([mock.call.reset()], progress_mock.method_calls)
|