Added a test for wrmwcache.py
authorphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Wed, 1 Apr 2015 21:26:41 +0000 (21:26 +0000)
committerphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Wed, 1 Apr 2015 21:26:41 +0000 (21:26 +0000)
git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2179 7aebc617-e5e2-0310-91dc-80fb5f6d2477

tests/test_wrmwcache.py [new file with mode: 0644]

diff --git a/tests/test_wrmwcache.py b/tests/test_wrmwcache.py
new file mode 100644 (file)
index 0000000..951d146
--- /dev/null
@@ -0,0 +1,34 @@
+#!/usr/bin/python2.7
+# -*- coding: iso-8859-15 -*-
+from sqlalchemy.engine import create_engine
+from wrpylib import wrmwcache
+import unittest
+
+
+class TestWrMwCache(unittest.TestCase):
+    def setUp(self):
+        self.engine = create_engine('mysql://philipp@localhost:3306/philipp_winterrodeln_wiki?charset=utf8&use_unicode=1')
+        self.connection = self.engine.connect()
+
+    def tearDown(self):
+        self.connection.close()
+
+
+    def test_update_wrsledruncache(self):
+        wrmwcache.update_wrsledruncache(self.connection)
+
+
+    def test_update_wrinncache(self):
+        wrmwcache.update_wrinncache(self.connection)
+
+
+    def test_update_wrreportcache(self):
+        wrmwcache.update_wrreportcache(self.connection)
+
+
+    def test_update_wrmapcache(self):
+        wrmwcache.update_wrmapcache(self.connection)
+
+
+    def test_update_wrregioncache(self):
+        wrmwcache.update_wrregioncache(self.connection)