/dports/www/chromium-legacy/chromium-88.0.4324.182/chromeos/components/cdm_factory_daemon/ |
H A D | cdm_storage_adapter_unittest.cc | 104 MockCdmFile mock_file; in TEST_F() local 135 MockCdmFile mock_file; in TEST_F() local 153 MockCdmFile mock_file; in TEST_F() local 188 MockCdmFile mock_file; in TEST_F() local 208 MockCdmFile mock_file; in TEST_F() local 239 MockCdmFile mock_file; in TEST_F() local 256 MockCdmFile mock_file; in TEST_F() local 274 MockCdmFile mock_file; in TEST_F() local 305 MockCdmFile mock_file; in TEST_F() local 322 MockCdmFile mock_file; in TEST_F() local [all …]
|
/dports/textproc/py-qrcode/qrcode-7.3/qrcode/tests/ |
H A D | test_release.py | 16 def test_invalid_data(self, mock_file): argument 18 mock_file.assert_called() 19 mock_file().write.assert_not_called() 22 def test_not_qrcode(self, mock_file): argument 24 mock_file.assert_not_called() 27 def test_no_change(self, mock_file): argument 29 mock_file.assert_called() 30 mock_file().write.assert_not_called() 33 def test_change(self, mock_file): argument 38 mock_file().write.has_calls([mock.call(line) for line in expected])
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/tools/checkteamtags/ |
H A D | checkteamtags_test.py | 15 def mock_file(lines): function 141 mock_open.return_value = mock_file(NO_TAGS) 162 mock_open.return_value = mock_file(MISSING_COMPONENT) 204 mock_open.return_value = mock_file(MISSING_TEAM) 232 mock_open.return_value = mock_file(BASIC) 246 mock_open.return_value = mock_file(BASIC) 248 mock_open_2.return_value = mock_file(BASIC) 262 mock_open.return_value = mock_file(BASIC) 264 mock_open_2.return_value = mock_file(BASIC) 278 mock_open.return_value = mock_file(BASIC) [all …]
|
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/tools/checkteamtags/ |
H A D | checkteamtags_test.py | 18 def mock_file(lines): function 144 mock_open.return_value = mock_file(NO_TAGS) 165 mock_open.return_value = mock_file(MISSING_COMPONENT) 207 mock_open.return_value = mock_file(MISSING_TEAM) 235 mock_open.return_value = mock_file(BASIC) 249 mock_open.return_value = mock_file(BASIC) 251 mock_open_2.return_value = mock_file(BASIC) 265 mock_open.return_value = mock_file(BASIC) 267 mock_open_2.return_value = mock_file(BASIC) 281 mock_open.return_value = mock_file(BASIC) [all …]
|
/dports/finance/electrum/Electrum-4.1.5/packages/qrcode/tests/ |
H A D | test_release.py | 23 def test_invalid_data(self, mock_file): argument 25 mock_file.assert_called() 26 mock_file().write.assert_not_called() 29 def test_not_qrcode(self, mock_file): argument 31 mock_file.assert_not_called() 34 def test_no_change(self, mock_file): argument 36 mock_file.assert_called() 37 mock_file().write.assert_not_called() 40 def test_change(self, mock_file): argument 45 mock_file().write.has_calls([mock.call(line) for line in expected])
|
/dports/devel/py-xarray/xarray-0.20.1/xarray/tests/ |
H A D | test_backends_file_manager.py | 24 mock_file = mock.Mock() 25 opener = mock.Mock(spec=open, return_value=mock_file) 35 mock_file.write.assert_called_once_with("contents") 36 mock_file.close.assert_called_once_with() 42 mock_file = mock.Mock() 43 opener = mock.Mock(return_value=mock_file) 56 mock_file.close.assert_called_once_with() 85 mock_file = mock.Mock() 86 opener = mock.Mock(spec=open, return_value=mock_file) 108 mock_file.close.assert_not_called()
|
/dports/graphics/piglit/piglit-136a7f5fa0703603be1ffb338abe4865e76a8058/unittests/suites/ |
H A D | test_oglconform.py | 51 mock_file = mocker.MagicMock() 52 mock_file.__enter__.return_value = io_ 56 mock_temp.return_value = mock_file 69 mock_file = mocker.MagicMock() 70 mock_file.__enter__.return_value = io_ 74 mock_temp.return_value = mock_file
|
/dports/astro/py-astropy/astropy-5.0/astropy/timeseries/io/tests/ |
H A D | test_kepler.py | 30 def test_raise_telescop_wrong(mock_file): argument 38 def test_raise_extversion_kepler(mock_file): argument 46 def test_raise_extversion_tess(mock_file): argument 54 def test_raise_timesys_kepler(mock_file): argument 62 def test_raise_timesys_tess(mock_file): argument
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/native_client/build/package_version/ |
H A D | package_version_test.py | 36 mock_file=None, contents='mock contents'): argument 47 if mock_file is None: 48 mock_file = 'mockfile_%s.txt' % str(random.random()) 53 full_mock_file = os.path.join(full_mock_dir, mock_file) 262 mock_file = self.GenerateMockFile(work_dir) 265 f.add(mock_file, arcname=os.path.basename(mock_file)) 313 mock_file='file1.tar', 318 mock_file='file2.tar', 494 mock_file = self.GenerateMockFile(work_dir) 497 f.add(mock_file) [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/catapult/devil/devil/android/ |
H A D | fastboot_utils_test.py | 352 mock_file = io.StringIO(u'require board=%s\n' % _BOARD) 353 with mock.patch('__builtin__.open', return_value=mock_file, create=True): 358 mock_file = io.StringIO(u'abc') 359 with mock.patch('__builtin__.open', return_value=mock_file, create=True): 368 mock_file = io.StringIO(u'require board=%s\n' % _BOARD) 369 with mock.patch('__builtin__.open', return_value=mock_file, create=True): 374 mock_file = io.StringIO(u'require board=%s\n' % _BOARD) 375 with mock.patch('__builtin__.open', return_value=mock_file, create=True): 380 mock_file = io.StringIO(u'require board=WrongBoard') 386 mock_file = io.StringIO(u'Regex wont match') [all …]
|
/dports/net/google-cloud-sdk/google-cloud-sdk/platform/gsutil/gslib/vendored/boto/tests/unit/awslambda/ |
H A D | test_awslambda.py | 107 mock_file = mock.Mock() 108 mock_file.tell.side_effect = IOError 112 function_zip=mock_file,
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/catapult/third_party/gsutil/gslib/vendored/boto/tests/unit/awslambda/ |
H A D | test_awslambda.py | 107 mock_file = mock.Mock() 108 mock_file.tell.side_effect = IOError 112 function_zip=mock_file,
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/depot_tools/external_bin/gsutil/gsutil_4.28/gsutil/third_party/boto/tests/unit/awslambda/ |
H A D | test_awslambda.py | 107 mock_file = mock.Mock() 108 mock_file.tell.side_effect = IOError 112 function_zip=mock_file,
|
/dports/devel/py-boto/boto-2.49.0/tests/unit/awslambda/ |
H A D | test_awslambda.py | 107 mock_file = mock.Mock() 108 mock_file.tell.side_effect = IOError 112 function_zip=mock_file,
|
/dports/science/pynn/PyNN-0.10.0/test/unittests/ |
H A D | test_files.py | 16 mock_file = Mock() 17 files.open = Mock(return_value=mock_file) 25 assert_equal(mock_file.write.call_args_list, target)
|
/dports/sysutils/py-salt/salt-3004.1/tests/unit/modules/ |
H A D | test_btrfs.py | 83 mock_file = mock_open( 86 with patch.object(salt.utils.files, "fopen", mock_file): 98 mock_file = mock_open(read_data="/dev/sda1 / ext4 rw,data=ordered 0 0") 99 with patch.object(salt.utils.files, "fopen", mock_file): 165 mock_file = mock_open(read_data="/dev/sda1 / ext4 rw,data=ordered 0 0") 166 with patch.object(salt.utils.files, "fopen", mock_file): 322 mock_file = mock_open( 325 with patch.object(salt.utils.files, "fopen", mock_file):
|
/dports/cad/uranium/Uranium-3ed9c4de/tests/PluginRegistry/ |
H A D | TestPluginRegistry.py | 63 with patch("builtins.open", mock_open()) as mock_file: 65 handle = mock_file() 72 with patch("builtins.open", mock_open()) as mock_file: 74 handle = mock_file() 194 with patch("builtins.open", mock_open()) as mock_file:
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/catapult/telemetry/telemetry/internal/platform/ |
H A D | linux_based_platform_backend_unittest.py | 29 def SetMockFileInBackend(self, backend, real_file, mock_file): argument 31 backend.SetMockFile(mock_file, f.read())
|
/dports/devel/py-flexmock/flexmock-0.10.10/docs/ |
H A D | compare.rst | 273 mock_file = mox.MockAnything() 274 mock_file.read().AndReturn('some data') 276 __builtins__.open('file_name').AndReturn(mock_file) 278 with mock_file: 279 assertEqual('some data', mock_file.read())
|
/dports/deskutils/zim/zim-0.74.3/tests/ |
H A D | history.py | 18 def mock_file(lines): function 254 uistate = INIConfigFile(mock_file([])) 276 newuistate = INIConfigFile(mock_file(lines)) 293 newuistate = INIConfigFile(mock_file(lines)) 305 uistate = INIConfigFile(mock_file([]))
|
/dports/devel/py-tiamat/tiamat-7b2e30f7fc1bd9f2560789736c7d0e612b3ddaa0/tests/unit/tiamat/ |
H A D | test_build.py | 11 with mock.patch("builtins.open", mock.mock_open(read_data=req_file)) as mock_file: 14 mock_file.assert_called_with(result, "w+")
|
/dports/sysutils/ansible/ansible-4.7.0/ansible_collections/netapp_eseries/santricity/tests/unit/modules/ |
H A D | test_na_santricity_firmware.py | 72 with patch(builtin_path, mock_open(read_data=b"firmwarexxxxxxxx")) as mock_file: 77 with patch(builtin_path, mock_open(read_data=self.BUNDLE_HEADER[:16])) as mock_file: 84 with patch(builtin_path, mock_open(read_data=b"xxxxxxxxxxxxxxxx")) as mock_file: 94 with patch(builtin_path, mock_open_with_iter(read_data=self.BUNDLE_HEADER)) as mock_file: 102 with patch(builtin_path, mock_open_with_iter(read_data=self.NVSRAM_HEADER)) as mock_file:
|
/dports/sysutils/ansible2/ansible-2.9.27/test/units/modules/storage/netapp/ |
H A D | test_netapp_e_firmware.py | 76 with patch(builtin_path, mock_open(read_data=b"firmwarexxxxxxxx")) as mock_file: 81 with patch(builtin_path, mock_open(read_data=self.BUNDLE_HEADER[:16])) as mock_file: 88 with patch(builtin_path, mock_open(read_data=b"xxxxxxxxxxxxxxxx")) as mock_file: 98 with patch(builtin_path, mock_open_with_iter(read_data=self.BUNDLE_HEADER)) as mock_file: 106 with patch(builtin_path, mock_open_with_iter(read_data=self.NVSRAM_HEADER)) as mock_file:
|
/dports/sysutils/py-salt/salt-3004.1/tests/pytests/unit/states/file/ |
H A D | test_absent.py | 50 mock_file = MagicMock(side_effect=[True, CommandExecutionError]) 83 with patch.dict(filestate.__salt__, {"file.remove": mock_file}):
|
/dports/mail/phplist/phplist-3.6.6/public_html/lists/base/vendor/phplist/core/config/ |
H A D | config_test.yml | 7 storage_id: session.storage.mock_file
|