🐛 fix test

This commit is contained in:
Faylixe
2020-12-08 14:53:07 +01:00
parent 1665861a76
commit 981efbd734
2 changed files with 3 additions and 3 deletions

View File

@@ -42,8 +42,8 @@ def configure_logger(verbose: bool) -> None:
verbose (bool):
`True` to use verbose logger, `False` otherwise.
"""
tf_logger = tf_logging._get_logger()
tf_logger.handlers = [handler]
# tf_logger = tf_logging._get_logger()
# tf_logger.handlers = [handler]
if verbose:
environ['TF_CPP_MIN_LOG_LEVEL'] = '1'
tf_logging.set_verbosity(tf_logging.INFO)

View File

@@ -101,7 +101,7 @@ def test_train():
'-p', 'useless_config.json',
'-d', path
])
raise IOError(f'STDOUT: {result.stdout}, STDERR: {result.stderr}')
raise IOError(f'STDOUT: {result.stdout}')
assert result.exit_code == 0
# assert that model checkpoint was created.
assert os.path.exists(join(path, 'model', 'model.ckpt-10.index'))