def test_use_threading(
                self,
                current_process,
                config,
                process_mapper_cls,
                thread_mapper_cls,
                default_batcher,
            ):
                """test create with no mapper key"""
                current_process.return_value.daemon = True

                #####
                result = fomf.MapperFactory.create(
                    None,
                    num_workers := mock.Mock(),
                    batch_size=(batch_size := mock.Mock()),
                    **(kwargs := mock.create_autospec(dict)),
                )
                #####

                assert not process_mapper_cls.called
                thread_mapper_cls.create.assert_called_once_with(
                    config=config,
                    batch_cls=default_batcher,
                    batch_size=batch_size,
                    num_workers=num_workers,
                    **kwargs,
                )

                assert result == thread_mapper_cls.create.return_value
test create with no mapper key
tests/unittests/map/test_factory.py