File tree Expand file tree Collapse file tree 5 files changed +3
-11
lines changed Expand file tree Collapse file tree 5 files changed +3
-11
lines changed Original file line number Diff line number Diff line change 1+ [pytest]
2+ addopts = --cov hobbit_core --cov =tests --cov-report term-missing -s -x -v -p no:warnings
Original file line number Diff line number Diff line change 99class BaseTest (object ):
1010 root_path = os .path .split (os .path .abspath (__name__ ))[0 ]
1111
12- def setup_method (self , method ):
13- print ('\n {}::{}' .format (type (self ).__name__ , method .__name__ ))
14-
15- def teardown_method (self , method ):
16- pass
17-
1812
1913def rmdir (path ):
2014 if os .path .exists (path ):
Original file line number Diff line number Diff line change @@ -12,12 +12,10 @@ class TestHobbit(BaseTest):
1212
1313 def setup_method (self , method ):
1414 rmdir (self .wkdir )
15- super (TestHobbit , self ).setup_method (method )
1615
1716 def teardown_method (self , method ):
1817 os .chdir (self .root_path )
1918 rmdir (self .wkdir )
20- super (TestHobbit , self ).teardown_method (method )
2119
2220 def test_hobbit_cmd (self ):
2321 runner = CliRunner ()
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ def test_dict2object(self):
1919
2020 # test getattr
2121 with pytest .raises (AttributeError ):
22- print ( obj .b )
22+ obj .b
2323
2424 def test_secure_filename (self ):
2525 filenames = (
Original file line number Diff line number Diff line change 1010@bp .route ('/use_kwargs_with_partial/' , methods = ['POST' ])
1111@use_kwargs (UserSchema (partial = True ))
1212def use_kwargs_with_partial (** kwargs ):
13- print (kwargs )
1413 return jsonify ({k : v or None for k , v in kwargs .items ()})
1514
1615
1716@bp .route ('/use_kwargs_without_partial/' , methods = ['POST' ])
1817@use_kwargs (UserSchema ())
1918def use_kwargs_without_partial (** kwargs ):
20- print (kwargs )
2119 return jsonify ({k : v or None for k , v in kwargs .items ()})
You can’t perform that action at this time.
0 commit comments