Permalink
Browse files

fix tests

  • Loading branch information...
1 parent 7c41051 commit 461a5c1b1408182304267d56eb2cbe07e6549de1 @benoitc benoitc committed Nov 5, 2009
Showing with 4 additions and 4 deletions.
  1. +2 −2 tests/test_cli.py
  2. +2 −2 tests/test_couchapp.py
View
@@ -15,7 +15,7 @@
from couchapp import CouchApp, UI
from couchapp.utils import popen3, in_couchapp, deltree
-from couchapp.contrib.couchdb import Server, ResourceNotFound
+from couchdbkit import Server, ResourceNotFound
@@ -27,7 +27,7 @@ class CliTestCase(unittest.TestCase):
def setUp(self):
self.server = Server()
- self.db = self.server.create('couchapp-test')
+ self.db = self.server.create_db('couchapp-test')
f, fname = tempfile.mkstemp()
os.unlink(fname)
View
@@ -15,7 +15,7 @@
from couchapp.app import CouchApp
from couchapp.ui import UI
-from couchapp.contrib.couchdb import Server, ResourceNotFound
+from couchdbkit import Server, ResourceNotFound
def deltree(path):
for root, dirs, files in os.walk(path, topdown=False):
@@ -29,7 +29,7 @@ class UITestCase(unittest.TestCase):
def setUp(self):
self.server = Server()
- self.db = self.server.create('couchapp-test')
+ self.db = self.server.create_db('couchapp-test')
f, fname = tempfile.mkstemp()
os.unlink(fname)

0 comments on commit 461a5c1

Please sign in to comment.