Enable debug logging for tests

This commit is contained in:
Layla 2020-02-21 17:48:37 -05:00
parent b76c873e26
commit 9529259441

View File

@ -1,5 +1,5 @@
import unittest, os, subprocess, semver
from semver.logger import logging, logger, console_logger
from semver import get_version
@ -73,6 +73,8 @@ def create_git_environment():
subprocess.run(['git', 'remote', 'add', 'origin', os.getcwd()+'/.git'])
if __name__ == "__main__":
console_logger.setLevel(logging.DEBUG)
subprocess.run(['rm', '-rf', test_directory])
subprocess.run(['mkdir', test_directory])
os.chdir(test_directory)