Permalink
Browse files

Tests now run from local version, not from installed version

  • Loading branch information...
1 parent 4bac60c commit d614da6a3351889ac80e514a85fc9b524c93885d @maraujop committed Apr 22, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 tests/tests.py
View
@@ -8,7 +8,9 @@
import requests
from urlparse import parse_qs
-sys.path.append(os.path.dirname(os.getcwd()))
+# Insert this package's path in the PYTHON PATH as first route
+path = os.path.dirname(os.getcwd())
+sys.path.insert(0, path)
from oauth_hook.hook import OAuthHook
from test_settings import TWITTER_ACCESS_TOKEN, TWITTER_ACCESS_TOKEN_SECRET

0 comments on commit d614da6

Please sign in to comment.