def test_bootstrap_files_calls_register_file_for_each_file(
self,
containers
):
file_paths = {'a.test', 'b.test'}
bootstrapper = FileBootstrapperBase(
schema_ref=None,
file_paths=file_paths,
override_metadata=True,
file_extension='test'
)
bootstrapper.register_file = mock.Mock(return_value=None)
bootstrapper.bootstrap_schema_result = mock.Mock()
bootstrapper.bootstrap_files()
assert bootstrapper.register_file.mock_calls == [
mock.call(file_path) for file_path in file_paths
]
assert bootstrapper.bootstrap_schema_result.mock_calls == [
mock.call(None) for _ in file_paths
]
评论列表
文章目录