View source on GitHub |
Mock out the kaggle CLI.
@contextlib.contextmanager
tfds.testing.mock_kaggle_api( err_msg=None )
Args | |
---|---|
err_msg
|
str , if provided, the kaggle CLI will raise a CalledProcessError
and this will be the command output.
|
Yields | |
---|---|
None, context will have kaggle CLI mocked out. |