Searched refs:mock (Results 1 - 6 of 6) sorted by relevance

/xsrc/external/mit/MesaLib/dist/bin/
H A Dpost_version_test.py21 from unittest import mock
28 @mock.patch('bin.post_version.subprocess.run', mock.Mock())
34 with mock.patch('bin.post_version.subprocess.run', mock.Mock()), \
35 mock.patch('bin.post_version.pathlib', mock.MagicMock()):
44 m = mock.Mock()
45 with mock.patch('bin.post_version.csv.reader', mock
[all...]
H A Dgen_release_notes_test.py28 # backported version of mock
30 from unittest import mock
32 import mock
153 mock_com = mock.AsyncMock(return_value=(textwrap.dedent(content).encode(), ''))
154 mock_p = mock.Mock()
156 mock_exec = mock.AsyncMock(return_value=mock_p)
158 with mock.patch('bin.gen_release_notes.asyncio.create_subprocess_exec', mock_exec), \
159 mock.patch('bin.gen_release_notes.gather_commits', mock.AsyncMock(return_value='sha\n')):
H A Dgen_calendar_entries_test.py25 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
[all...]
/xsrc/external/mit/MesaLib/dist/bin/pick/
H A Dcore_test.py23 from unittest import mock
245 """A fake asyncio.subprocess like classe for use with mock."""
250 async def mock(self, *_, **__): member in class:TestResolveNomination.FakeSubprocess
274 with mock.patch('bin.pick.core.asyncio.create_subprocess_exec', s.mock):
275 with mock.patch('bin.pick.core.is_commit_in_branch', self.return_true):
286 with mock.patch('bin.pick.core.asyncio.create_subprocess_exec', s.mock):
287 with mock.patch('bin.pick.core.is_commit_in_branch', self.return_false):
298 with mock
[all...]
/xsrc/external/mit/MesaLib/dist/src/freedreno/.gitlab-ci/traces/
H A Dafuc_test.asm23 ; This file is the source for a simple mock firmware used to regression test
/xsrc/external/mit/MesaLib/dist/docs/relnotes/
H A D20.2.0.rst786 - scripts: remove unittest.mock dependency when not used

Completed in 11 milliseconds