[Greater-commits] r355 - trunk/GREAT-ER-DB/impl/postgresql/test
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed Jul 6 16:38:12 CEST 2011
Author: bricks
Date: 2011-07-06 16:38:11 +0200 (Wed, 06 Jul 2011)
New Revision: 355
Modified:
trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_o_phrase.py
Log:
Fix indentation and add comment about missing tests
Modified: trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_o_phrase.py
===================================================================
--- trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_o_phrase.py 2011-07-06 10:53:34 UTC (rev 354)
+++ trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_o_phrase.py 2011-07-06 14:38:11 UTC (rev 355)
@@ -31,23 +31,27 @@
from GreaterDB.interface import da_db_commit
from GreaterDB.interface import da_get_phrase_grp
+from GreaterDB.interface import DA_S_phrase
class Test_da_phrase_tab(unittest.TestCase):
+# da_inset_phrase etc. should be tested here too
+# but theses functions aren't part of public api
+
def setUp(self):
set_api_interface("_dagreater_pg")
self.server = postgressupport.get_test_server()
- self.connection_target = self.server.known_dbs["static_db"].get_connection_target()
- da_db_connect("anonym", "123", self.connection_target)
+ self.connection_target = self.server.known_dbs["static_db"].get_connection_target()
+ da_db_connect("anonym", "123", self.connection_target)
def test_0_get_phrase_grp(self):
- self.res = da_get_phrase_grp(1,'E')
- self.assertNotEquals(len(self.res),0)
- self.res = da_get_phrase_grp(1,'M')
- self.assertEquals(len(self.res),0)
+ self.rVes = da_get_phrase_grp(1, 'E')
+ self.assertNotEquals(len(self.res),0)
+ self.res = da_get_phrase_grp(1, 'M')
+ self.assertEquals(len(self.res),0)
def tearDown(self):
- da_db_disconnect()
-
+ da_db_disconnect()
+
if __name__ == "__main__":
support.run_tests()
More information about the Greater-commits
mailing list