Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
AtsushiSakai committed Mar 16, 2019
1 parent 36eae0b commit c80583b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -552,9 +552,9 @@ def main():
dl = 1.0 # course tick
# cx, cy, cyaw, ck = get_straight_course(dl)
# cx, cy, cyaw, ck = get_straight_course2(dl)
cx, cy, cyaw, ck = get_straight_course3(dl)
# cx, cy, cyaw, ck = get_straight_course3(dl)
# cx, cy, cyaw, ck = get_forward_course(dl)
# CX, cy, cyaw, ck = get_switch_back_course(dl)
cx, cy, cyaw, ck = get_switch_back_course(dl)

sp = calc_speed_profile(cx, cy, cyaw, TARGET_SPEED)

Expand Down Expand Up @@ -617,5 +617,5 @@ def main2():


if __name__ == '__main__':
# main()
main2()
main()
# main2()
15 changes: 8 additions & 7 deletions tests/test_rocket_powered_landing.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
from unittest import TestCase

import sys
sys.path.append("./AerialNavigation/rocket_powered_landing/")

from AerialNavigation.rocket_powered_landing import rocket_powered_landing as m
print(__file__)
if 'cvxpy' in sys.modules: # pragma: no cover
sys.path.append("./AerialNavigation/rocket_powered_landing/")

from AerialNavigation.rocket_powered_landing import rocket_powered_landing as m
print(__file__)

class Test(TestCase):
class Test(TestCase):

def test1(self):
m.show_animation = False
m.main()
def test1(self):
m.show_animation = False
m.main()

0 comments on commit c80583b

Please sign in to comment.