Skip to content

Commit b9836f6

Browse files
committed
Add random log to tests
1 parent 6947079 commit b9836f6

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

tests/test_constants.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ def _constants(typename):
2323
)
2424
)
2525

26-
2726
@pytest.mark.parametrize('transform', _constants('__Transform'), ids=repr)
2827
def test_transform_str(transform):
2928
"""Test string representation of ``xmlsec.constants.__Transform``."""

tests/test_ds.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55

66
consts = xmlsec.constants
77

8+
import logging
9+
10+
logging.basicConfig(level=logging.INFO)
11+
logger = logging.getLogger(__name__)
12+
813

914
class TestSignContext(base.TestMemoryLeaks):
1015
def test_init(self):
@@ -20,7 +25,10 @@ def test_init_bad_args(self):
2025
xmlsec.SignatureContext(manager='foo')
2126

2227
def test_no_key(self):
28+
from lxml import etree
29+
message = etree.LIBXML_VERSION
2330
ctx = xmlsec.SignatureContext(manager=xmlsec.KeysManager())
31+
assert False, message
2432
self.assertIsNone(ctx.key)
2533

2634
def test_del_key(self):

0 commit comments

Comments
 (0)