Confirm unit tests run properly individually & fix test_keystore

"test_keystore.py" logged TUF messages if run individually.
This commit is contained in:
vladdd 2013-08-12 12:47:26 -04:00
parent dc3f9680fe
commit a6ccdc9eec
3 changed files with 7 additions and 0 deletions

View file

@ -19,12 +19,19 @@
import unittest
import shutil
import os
import logging
import tuf.repo.keystore
import tuf.rsa_key
import tuf.formats
import tuf.util
logger = logging.getLogger('tuf')
# Disable all logging calls of level CRITICAL and below.
# Comment the line below to enable logging.
logging.disable(logging.CRITICAL)
# We'll need json module for testing '_encrypt()' and '_decrypt()'
# internal function.
json = tuf.util.import_json()

0
tuf/tests/test_push.py Normal file → Executable file
View file

0
tuf/tests/test_pushtoolslib.py Normal file → Executable file
View file