Most of the tests already require the cython modules to
be mocked. This is the final step in making pytest
independent of those modules.
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
+import os
+
+if 'UNITTEST' in os.environ:
+ import tests
+
import cephfs
import contextlib
import datetime
import errno
-import os
import socket
import time
import logging
[testenv]
setenv =
UNITTEST = true
- PYTHONPATH = ../../../build/lib/cython_modules/lib.3/
- LD_LIBRARY_PATH = ../../../build/lib
deps =
cython
-rrequirements.txt