mirror of
https://github.com/YuzuZensai/spleeter.git
synced 2026-01-31 14:58:23 +00:00
🐛 fix test
This commit is contained in:
@@ -42,8 +42,8 @@ def configure_logger(verbose: bool) -> None:
|
|||||||
verbose (bool):
|
verbose (bool):
|
||||||
`True` to use verbose logger, `False` otherwise.
|
`True` to use verbose logger, `False` otherwise.
|
||||||
"""
|
"""
|
||||||
tf_logger = tf_logging._get_logger()
|
# tf_logger = tf_logging._get_logger()
|
||||||
tf_logger.handlers = [handler]
|
# tf_logger.handlers = [handler]
|
||||||
if verbose:
|
if verbose:
|
||||||
environ['TF_CPP_MIN_LOG_LEVEL'] = '1'
|
environ['TF_CPP_MIN_LOG_LEVEL'] = '1'
|
||||||
tf_logging.set_verbosity(tf_logging.INFO)
|
tf_logging.set_verbosity(tf_logging.INFO)
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ def test_train():
|
|||||||
'-p', 'useless_config.json',
|
'-p', 'useless_config.json',
|
||||||
'-d', path
|
'-d', path
|
||||||
])
|
])
|
||||||
raise IOError(f'STDOUT: {result.stdout}, STDERR: {result.stderr}')
|
raise IOError(f'STDOUT: {result.stdout}')
|
||||||
assert result.exit_code == 0
|
assert result.exit_code == 0
|
||||||
# assert that model checkpoint was created.
|
# assert that model checkpoint was created.
|
||||||
assert os.path.exists(join(path, 'model', 'model.ckpt-10.index'))
|
assert os.path.exists(join(path, 'model', 'model.ckpt-10.index'))
|
||||||
|
|||||||
Reference in New Issue
Block a user