Skip to content

Commit

Permalink
improve coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
AtsushiSakai committed Feb 10, 2019
1 parent fa374c7 commit 2065974
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions PathPlanning/FrenetOptimalTrajectory/cubic_spline_planner.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def calc_spline_course(x, y, ds=0.1):
return rx, ry, ryaw, rk, s


def main():
def main(): # pragma: no cover
print("Spline 2D test")
import matplotlib.pyplot as plt
x = [-2.5, 0.0, 2.5, 5.0, 7.5, 3.0, -1.0]
Expand Down Expand Up @@ -235,5 +235,5 @@ def main():
plt.show()


if __name__ == '__main__':
if __name__ == '__main__': # pragma: no cover
main()
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def optimize_trajectory(target, k0, p):
return xc, yc, yawc, p


def test_optimize_trajectory():
def test_optimize_trajectory(): # pragma: no cover

# target = motion_model.State(x=5.0, y=2.0, yaw=np.deg2rad(00.0))
target = motion_model.State(x=5.0, y=2.0, yaw=np.deg2rad(90.0))
Expand All @@ -149,7 +149,7 @@ def test_optimize_trajectory():
plt.show()


def main():
def main(): # pragma: no cover
print(__file__ + " start!!")
test_optimize_trajectory()

Expand Down
2 changes: 1 addition & 1 deletion tests/test_cgmres_nmpc.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from unittest import TestCase

import sys
if 'cvxpy' in sys.modules:
if 'cvxpy' in sys.modules: # pragma: no cover
sys.path.append("./PathTracking/cgmres_nmpc/")

from PathTracking.cgmres_nmpc import cgmres_nmpc as m
Expand Down
2 changes: 1 addition & 1 deletion tests/test_model_predictive_speed_and_steer_control.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from unittest import TestCase

import sys
if 'cvxpy' in sys.modules:
if 'cvxpy' in sys.modules: # pragma: no cover
sys.path.append("./PathTracking/model_predictive_speed_and_steer_control/")

from PathTracking.model_predictive_speed_and_steer_control import model_predictive_speed_and_steer_control as m
Expand Down

0 comments on commit 2065974

Please sign in to comment.