From 37935324b36102a61ad7dc6c3d4918d4bf7828c2 Mon Sep 17 00:00:00 2001
From: Martijn Vermaat <martijn@vermaat.name>
Date: Thu, 5 Dec 2013 22:47:15 +0100
Subject: [PATCH] Fix unit tests in virtualenv

---
 requirements.txt      | 3 +++
 tests/test_website.py | 3 ++-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/requirements.txt b/requirements.txt
index 46741e95..dd5574ae 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -18,3 +18,6 @@ suds==0.4
 web.py==0.37
 wsgiref==0.1.2
 xlrd==0.9.2
+WebOb==1.1.1
+WebTest==1.4.2
+cssselect==0.9.1
diff --git a/tests/test_website.py b/tests/test_website.py
index 4b323f9e..52e50795 100644
--- a/tests/test_website.py
+++ b/tests/test_website.py
@@ -744,7 +744,8 @@ facilisi."""
         @todo: This genbank file location is bogus. The tests directory is not
             included with the package installation.
         """
-        test_genbank_file = os.path.join(os.path.split(mutalyzer.package_root())[0], 'tests/data/AB026906.1.gb')
+        test_genbank_file = os.path.join(os.path.realpath(os.path.dirname(__file__)),
+                                         'data', 'AB026906.1.gb')
         r = self.app.get('/upload')
         form = r.forms[0]
         form['invoermethode'] = 'file'
-- 
GitLab