Lines Matching full:yaml
23 from yaml.scanner import ScannerError
34 ids=['C YAML', 'non-C YAML']
39 if fullname == 'yaml.CLoader' and fail_c:
41 if fullname == 'yaml.CSafeLoader' and fail_c:
43 if fullname == 'yaml.CDumper' and fail_c:
48 if hasattr(modules_mock['yaml'], 'CLoader'):
49 del modules_mock['yaml'].CLoader
50 del modules_mock['yaml'].CSafeLoader
51 del modules_mock['yaml'].CDumper
61 modules_mock['yaml'].CLoader = cloader_mock
62 modules_mock['yaml'].CSafeLoader = csafeloader_mock
63 modules_mock['yaml'].CDumper = cdumper_mock
65 modules_mock['yaml'].Loader = loader_mock
66 modules_mock['yaml'].SafeLoader = safeloader_mock
67 modules_mock['yaml'].Dumper = dumper_mock
85 import yaml
86 reload(yaml)
91 (True, None, ['can\'t import pykwalify; won\'t validate YAML']),
158 filename = 'dummy/file.yaml'
160 with mock.patch('yaml.load', side_effect=mock_load), \
165 mock_file.assert_called_with('dummy/file.yaml', 'r', encoding='utf-8')
188 filename = 'dummy/file.yaml'
254 quarantine_file.write_text("# yaml file without data")