~jconti/recent-notifications/trunk

« back to all changes in this revision

Viewing changes to tests/test_icon.py

  • Committer: Jason Conti
  • Date: 2010-03-08 19:42:04 UTC
  • Revision ID: jason.conti@gmail.com-20100308194204-3kaoq1rphjrgqpyg
The test runner was working, but somehow broke. Was originally using gwibber's mechanism of adding the path to the module to the start of python's search path, but that didn't seem right to me, and stopped working mysteriously anyway. So instead it is now adding the root source directory to the search path, and everything seems to be working again.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
# Insert the recent_notifications module into the search path
15
15
app_path = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
16
 
rn_path = os.path.join(app_path, "recent_notifications")
17
 
sys.path.insert(0, rn_path)
 
16
sys.path.insert(0, app_path)
18
17
 
19
18
from recent_notifications import Icon
20
19