File tree Expand file tree Collapse file tree 4 files changed +13
-3
lines changed Expand file tree Collapse file tree 4 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ To run the tests you also require:
2020
2121 - make (to run `make test `)
2222 - nose (debian package == `python-nose `)
23+ - MiniMockTest (`pip install minimocktest `)
2324
2425Install
2526-------
Original file line number Diff line number Diff line change 1- from yajl_test_lib import *
1+ from yajl_test_lib import yajl
2+ from minimocktest import MockTestCase
3+ from StringIO import StringIO
4+ import sys
25
36class BaseContentHandler (yajl .YajlContentHandler ):
47 def yajl_null (self , ctx ):
@@ -238,7 +241,7 @@ def test_get_yajl_version_correctlyParsesYajlVersion(self):
238241
239242 def test_check_yajl_version_warnsOnlyWhenMismatchedVersions (self ):
240243 import warnings
241- self .mock ('warnings.warn' , [ locals ()] )
244+ self .mock ('warnings.warn' )
242245 self .mock ('yajl.__version__' , mock_obj = '1.1.1' )
243246 self .mock ('yajl.yajl_version' , mock_obj = '1.1.1' )
244247 self .assertTrue (yajl .check_yajl_version ())
Original file line number Diff line number Diff line change 1- from yajl_test_lib import *
1+ from yajl_test_lib import yajl , BASEPATH
2+ from minimocktest import MockTestCase
3+ from StringIO import StringIO
4+ import os
25import difflib
36
47class YajlCTestContentHandler (yajl .YajlContentHandler ):
Original file line number Diff line number Diff line change 1+ '''
2+ Helper module to import yajl from parent src dir
3+ '''
14import os
25import sys
36BASEPATH = os .path .dirname (os .path .realpath (__file__ ))
You can’t perform that action at this time.
0 commit comments