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.
This commit is contained in:
Andreas Zweili 2019-01-18 16:48:16 +01:00
parent d2ff08ccd9
commit 4135986745
1 changed files with 4 additions and 0 deletions

4
tests/context.py Normal file
View File

@ -0,0 +1,4 @@
import os
import sys
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__),
'../borg_qt')))