Commits

infrared  committed 819bb3b

Separated unit and functional tests.

  • Participants
  • Parent commits 49f9c7f

Comments (0)

Files changed (2)

 * Python >= 2.4 (http://www.python.org/)
 * Postgres database (http://www.postgresql.org/)
 * Python module psycopg 1.1 (http://initd.org/projects/psycopg1/)
+* Cheetah templates (http://www.cheetahtemplate.org/)
 
 
 Installation process
    some fixed date (probably August 10th like the last time) by "touch -d".
 
 After this steps Cheesecake service can be enabled again.
+
+Running tests
+-------------
+
+To run set of unit tests execute::
+
+    $ nosetests -v --with-doctest --doctest-tests --exe -a \!functional
+
+To run functional tests (which need existing and running "cheesecake_test" database)::
+
+    $ nosetests -v --exe -a functional

File tests/test_store.py

 
 class TestCaseWithTestDatbase(unittest.TestCase):
     postgres_config = 'dbname=cheesecake_test'
+    functional = True
 
     def setUp(self):
         store = Store(postgres_config=self.postgres_config)