TestCase: os.chdir to repodir on setUpClass
# pylint: disable=unused-import
from os.path import dirname, realpath
+from os import chdir
import sys
import logging
import io
@@ -12,6 +13,10 @@ from .assets import assets, copy_of_directory
class TestCase(VanillaTestCase):
+ @classmethod
+ def setUpClass(cls):
+ chdir(dirname(realpath(__file__)) + '/..')
+
def tearDown(self):
initLogging()
