File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- from ament_flake8 .main import main
15+ from ament_flake8 .main import main_with_errors
1616import pytest
1717
1818
1919@pytest .mark .flake8
2020@pytest .mark .linter
2121def test_flake8 ():
22- rc = main (argv = [])
23- assert rc == 0 , 'Found errors'
22+ rc , errors = main_with_errors (argv = [])
23+ assert rc == 0 , \
24+ 'Found %d code style errors / warnings:\n ' % len (errors ) + \
25+ '\n ' .join (errors )
Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- from ament_flake8 .main import main
15+ from ament_flake8 .main import main_with_errors
1616import pytest
1717
1818
1919@pytest .mark .flake8
2020@pytest .mark .linter
2121def test_flake8 ():
22- rc = main (argv = [])
23- assert rc == 0 , 'Found errors'
22+ rc , errors = main_with_errors (argv = [])
23+ assert rc == 0 , \
24+ 'Found %d code style errors / warnings:\n ' % len (errors ) + \
25+ '\n ' .join (errors )
You can’t perform that action at this time.
0 commit comments