Lines Matching defs:mock
25 from unittest import mock
49 with mock.patch('bin.gen_calendar_entries.CALENDAR_CSV', pathlib.Path(c)):
56 with mock.patch('bin.gen_calendar_entries.commit', mock.Mock()):
85 mdate = mock.Mock()
86 mdate.today = mock.Mock(return_value=date)
87 with mock.patch('bin.gen_calendar_entries.datetime.date', mdate):
163 with mock.patch('bin.gen_calendar_entries.VERSION', pathlib.Path(v)):
272 mdate = mock.Mock()
273 mdate.today = mock.Mock(return_value=datetime.date(2021, 1, 6))
274 with mock.patch('bin.gen_calendar_entries.datetime.date', mdate):