@@ -87,7 +87,7 @@ def test_bake_with_defaults(cookies):
8787def test_bake_and_run_tests (cookies ):
8888 with bake_in_temp_dir (cookies ) as result :
8989 assert result .project .isdir ()
90- run_inside_dir ('python setup.py test' , str (result .project )) == 0
90+ assert run_inside_dir ('python setup.py test' , str (result .project )) == 0
9191 print ("test_bake_and_run_tests path" , str (result .project ))
9292
9393
@@ -98,7 +98,7 @@ def test_bake_withspecialchars_and_run_tests(cookies):
9898 extra_context = {'full_name' : 'name "quote" name' }
9999 ) as result :
100100 assert result .project .isdir ()
101- run_inside_dir ('python setup.py test' , str (result .project )) == 0
101+ assert run_inside_dir ('python setup.py test' , str (result .project )) == 0
102102
103103
104104def test_bake_with_apostrophe_and_run_tests (cookies ):
@@ -108,7 +108,7 @@ def test_bake_with_apostrophe_and_run_tests(cookies):
108108 extra_context = {'full_name' : "O'connor" }
109109 ) as result :
110110 assert result .project .isdir ()
111- run_inside_dir ('python setup.py test' , str (result .project )) == 0
111+ assert run_inside_dir ('python setup.py test' , str (result .project )) == 0
112112
113113
114114# def test_bake_and_run_travis_pypi_setup(cookies):
@@ -220,9 +220,9 @@ def test_using_pytest(cookies):
220220 lines = test_file_path .readlines ()
221221 assert "import pytest" in '' .join (lines )
222222 # Test the new pytest target
223- run_inside_dir ('python setup.py pytest' , str (result .project )) == 0
223+ assert run_inside_dir ('python setup.py pytest' , str (result .project )) == 0
224224 # Test the test alias (which invokes pytest)
225- run_inside_dir ('python setup.py test' , str (result .project )) == 0
225+ assert run_inside_dir ('python setup.py test' , str (result .project )) == 0
226226
227227
228228def test_not_using_pytest (cookies ):
0 commit comments