summaryrefslogtreecommitdiffhomepage
path: root/tests/conftest.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/conftest.py')
-rw-r--r--tests/conftest.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index c58798ca..7d85fa99 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -1,3 +1,4 @@
+import logging
import os
import threading
@@ -13,6 +14,16 @@ from .util import _support
# 'nicer'.
+# Perform logging by default; pytest will capture and thus hide it normally,
+# presenting it on error/failure.
+# Also make sure to set up timestamping for more sanity when debugging.
+logging.basicConfig(
+ level=logging.DEBUG,
+ format="[%(relativeCreated)s]\t%(levelname)s:%(name)s:%(message)s",
+ datefmt="%H:%M:%S",
+)
+
+
def make_sftp_folder(client):
"""
Create some non-existing, new folder on the given SFTP connection.