Permalink
Browse files

made testClone match the other for ddoc check

  • Loading branch information...
BigBlueHat committed Dec 16, 2013
1 parent 40bf782 commit 16f020418896fa52e0df42ecbdef781679429b13
Showing with 7 additions and 1 deletion.
  1. +7 −1 tests/test_cli.py
View
@@ -158,7 +158,13 @@ def testClone(self):
(child_stdin, child_stdout, child_stderr) = \
popen3("%s push -v my-app couchapp-test" % self.cmd)
- design_doc = self.db.open_doc('_design/my-app')
+ # any design doc created ?
+ design_doc = None
+ try:
+ design_doc = self.db.open_doc('_design/my-app')
+ except ResourceNotFound:
+ pass
+ self.assertIsNotNone(design_doc)
app_dir = os.path.join(self.tempdir, "couchapp-test")

0 comments on commit 16f0204

Please sign in to comment.