mirror of
https://github.com/theupdateframework/python-tuf
synced 2026-05-24 10:08:28 +00:00
Confirm unit tests run properly individually & fix test_keystore
"test_keystore.py" logged TUF messages if run individually.
This commit is contained in:
parent
dc3f9680fe
commit
a6ccdc9eec
3 changed files with 7 additions and 0 deletions
|
|
@ -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
0
tuf/tests/test_push.py
Normal file → Executable file
0
tuf/tests/test_pushtoolslib.py
Normal file → Executable file
0
tuf/tests/test_pushtoolslib.py
Normal file → Executable file
Loading…
Reference in a new issue