From 41359867450a839694ec5c9036208035d166806e Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Fri, 18 Jan 2019 16:48:16 +0100 Subject: [PATCH] add a context file for tests With the context file on can import modules from the main package. This is very helpful for tests. Just do, import context in each test to activate it. --- tests/context.py | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 tests/context.py diff --git a/tests/context.py b/tests/context.py new file mode 100644 index 0000000..b4ab743 --- /dev/null +++ b/tests/context.py @@ -0,0 +1,4 @@ +import os +import sys +sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), + '../borg_qt')))