Пример #1
0
def test_pep257():
    excluded = ['ament_cpplint/cpplint.py']
    rc = main(argv=['--exclude'] + excluded)
    assert rc == 0, 'Found docblock style errors'
Пример #2
0
def test_pep257():
    rc = main(argv=['ament_tools', 'scripts', 'test'])
    assert rc == 0, 'Found code style errors / warnings'
Пример #3
0
def test_pep257():
    # Test is called from package root
    rc = main(argv=['.'])
    assert rc == 0, 'Found code style errors / warnings'
Пример #4
0
def test_pep257():
    rc = main(argv=['.', 'test'])
    assert rc == 0, 'Found code style errors / warnings'
Пример #5
0
def test_pep257():
    rc = main(argv=['ament_clang_format', 'test'])
    assert rc == 0, 'Found docblock style errors'
Пример #6
0
def test_pep257():
    rc = main(argv=[".", "test"])
    assert rc == 0, "Found code style errors / warnings"
Пример #7
0
def test_pep257():
    rc = main(argv=[])
    assert rc == 0, 'Found docblock style errors'
Пример #8
0
def test_pep257():
    rc = main(argv=['.', '--exclude', 'webots_ros2_core/math/quaternions.py'])
    assert rc == 0, 'Found code style errors / warnings'
Пример #9
0
def test_pep257():
    rc = main(argv=[])
    assert rc == 0, 'Found docblock style errors'
Пример #10
0
def test_pep257():
    rc = main(argv=['.', '--exclude', 'webots_ros2_importer/urdf2webots/'])
    assert rc == 0, 'Found code style errors / warnings'
Пример #11
0
def test_pep257():
    assert main(argv=[]) == 0, 'Found code style errors / warnings'
Пример #12
0
def test_pep257():
    rc = main(argv=["ament_clang_format", "test"])
    assert rc == 0, "Found docblock style errors"
Пример #13
0
def test_pep257():
    rc = main(argv=['.'])
    assert rc == 0, 'Found code style errors / warnings'
Пример #14
0
def test_pep257():
    rc = main(argv=[])
    assert rc == 0, 'Found errors'
Пример #15
0
def test_pep257():
    """Run pep257 on the package."""
    return_code = main(argv=[".", "test"])
    assert return_code == 0, "Found code style errors / warnings"  # nosec