Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix test errors

  • Loading branch information...
commit a71be9756c6ed7391d8410815e66f2575f8f4c3d 1 parent 78b3e80
@reyiyo reyiyo authored
View
2  .travis.yml
@@ -5,7 +5,7 @@ python:
services:
- couchdb
before_script:
- - pip install coveralls unittest2 nose-testconfig
+ - pip install coveralls unittest2 nose-testconfig mock
script:
- python setup.py install
- nosetests tests --with-coverage --cover-package=couchapp --cover-html
View
1  tests/__init__.py
@@ -1,2 +1,3 @@
import test_cli
import test_ignores
+import test_compress
View
0  tests/couchapp/__init__.py
No changes.
View
0  tests/couchapp/hooks/__init__.py
No changes.
View
0  tests/couchapp/hooks/compress/__init__.py
No changes.
View
4 tests/couchapp/hooks/compress/CompressTest.py → tests/test_compress.py
@@ -4,7 +4,7 @@
# This software is licensed as described in the file LICENSE, which
# you should have received as part of this distribution.
-import unittest
+import unittest2 as unittest
import mock
import os
@@ -16,7 +16,7 @@ def test_compress_js(self):
config.conf['compress'] = {'js': {'foo':['shows/example-show.js']}}
with mock.patch('couchapp.hooks.compress.default.compress', return_value='foo') as mock_compress:
from couchapp.hooks.compress import Compress
- compress = Compress(os.path.join(os.path.dirname(__file__), '../../../testapp'))
+ compress = Compress(os.path.join(os.path.dirname(__file__), 'testapp'))
compress.conf = config
with mock.patch('couchapp.util.write'):
compress.run()
Please sign in to comment.
Something went wrong with that request. Please try again.