From 0639d136b30e3e5fc6e648e5eb0abb305f430127 Mon Sep 17 00:00:00 2001
From: ojs1g14 <ojs1g14@soton.ac.uk>
Date: Mon, 24 Sep 2018 12:10:13 +0100
Subject: [PATCH] Add setup method to tests

---
 tests/sample_test.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/sample_test.py b/tests/sample_test.py
index a5d4fb7..4495fcb 100644
--- a/tests/sample_test.py
+++ b/tests/sample_test.py
@@ -3,6 +3,10 @@ import os
 import sys
 
 class TestBasicFunction(unittest.TestCase):
+
+    def SetUp(self):
+        modPath = os.path.abspath(os.getcwd())
+        sys.path.insert(0, modPath)
     
     def test_running(self):
         print("Running sample_test.py")
-- 
GitLab