~ubuntu-branches/ubuntu/maverick/yokadi/maverick

« back to all changes in this revision

Viewing changes to src/yokadi/tests/tests.py

  • Committer: Bazaar Package Importer
  • Author(s): Harald Sitter
  • Date: 2009-07-19 13:01:35 UTC
  • Revision ID: james.westby@ubuntu.com-20090719130135-eonczddb1s21ux1v
Tags: upstream-0.10.0
Import upstream version 0.10.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python
 
2
# -*- coding: UTF-8 -*-
 
3
"""
 
4
Yokadi unit tests
 
5
 
 
6
@author: Aurélien Gâteau <aurelien.gateau@free.fr>
 
7
@author: Sébastien Renard <Sebastien.Renard@digitalfox.org>
 
8
@license: GPLv3
 
9
"""
 
10
 
 
11
import unittest
 
12
import os
 
13
import sys
 
14
 
 
15
sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir))
 
16
import db
 
17
 
 
18
from parseutilstestcase import ParseUtilsTestCase
 
19
from yokadioptionparsertestcase import YokadiOptionParserTestCase
 
20
from dateutilstestcase import DateUtilsTestCase
 
21
from dbutilstestcase import DbUtilsTestCase
 
22
from projecttestcase import ProjectTestCase
 
23
from completerstestcase import CompletersTestCase
 
24
from tasktestcase import TaskTestCase
 
25
from bugtestcase import BugTestCase
 
26
 
 
27
DB_FILENAME = "unittest.db"
 
28
 
 
29
def main():
 
30
    if os.path.exists(DB_FILENAME):
 
31
        os.unlink(DB_FILENAME)
 
32
    db.connectDatabase(DB_FILENAME)
 
33
 
 
34
    unittest.main()
 
35
 
 
36
if __name__ == "__main__":
 
37
    main()
 
38
# vi: ts=4 sw=4 et