def test_frames_are_outdated_when_frame_outdated(mocker, shared_datadir): mocker.patch('blurwal.paths.CACHE_DIR', shared_datadir / 'cache_dir') mocker.patch('blurwal.frame.is_outdated', return_value=True) args = Namespace(steps=10, blur=0, min=0, ignore=[]) blur = Blur(args) assert blur.frames_are_outdated()
def test_frames_are_outdated_when_frame_missing(mocker, shared_datadir): mocker.patch('blurwal.paths.CACHE_DIR', shared_datadir / 'cache_dir') args = Namespace(steps=11, blur=0, min=0, ignore=[]) blur = Blur(args) assert blur.frames_are_outdated()