chore: fixes after libretime_analyzer rename
This commit is contained in:
parent
62476de478
commit
02efadc3d0
10 changed files with 14 additions and 14 deletions
|
@ -6,7 +6,7 @@ from unittest import mock
|
|||
|
||||
import pytest
|
||||
|
||||
from airtime_analyzer.filemover_analyzer import FileMoverAnalyzer
|
||||
from libretime_analyzer.filemover_analyzer import FileMoverAnalyzer
|
||||
|
||||
from .conftest import AUDIO_FILENAME
|
||||
|
||||
|
@ -88,7 +88,7 @@ def test_move_triplicate_file(src_dir, dest_dir):
|
|||
# Here we use mock to patch out the time.localtime() function so that it
|
||||
# always returns the same value. This allows us to consistently simulate this test cases
|
||||
# where the last two of the three files are imported at the same time as the timestamp.
|
||||
with mock.patch("airtime_analyzer.filemover_analyzer.time") as mock_time:
|
||||
with mock.patch("libretime_analyzer.filemover_analyzer.time") as mock_time:
|
||||
mock_time.localtime.return_value = time.localtime() # date(2010, 10, 8)
|
||||
mock_time.side_effect = time.time
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue