Skip to content

Commit 7951dae

Browse files
committed
fix pyplot test
1 parent fe6fc53 commit 7951dae

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/test_PyPlot.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,16 @@
66
# import numpy.testing as nt
77
# import numpy as np
88
import roboticstoolbox as rp
9+
910
# import spatialmath as sm
1011
import unittest
1112

1213

1314
class TestPyPlot(unittest.TestCase):
14-
1515
def test_PyPlot(self):
1616
panda = rp.models.DH.Panda()
1717
from roboticstoolbox.backends.PyPlot import PyPlot
18+
1819
env = PyPlot()
1920
env.launch()
2021
env.add(panda)
@@ -25,6 +26,7 @@ def test_PyPlot(self):
2526
def test_PyPlot_invisible(self):
2627
panda = rp.models.DH.Panda()
2728
from roboticstoolbox.backends.PyPlot import PyPlot
29+
2830
env = PyPlot()
2931
env.launch()
3032
env.add(panda, display=False)
@@ -35,13 +37,14 @@ def test_PyPlot_invisible(self):
3537
def test_unimplemented(self):
3638
# TODO remove these as implemented
3739
from roboticstoolbox.backends.PyPlot import PyPlot
40+
3841
env = PyPlot()
3942
env.reset()
4043

4144
env.restart()
42-
env.remove()
45+
env.remove(0)
4346

4447

45-
if __name__ == '__main__':
48+
if __name__ == "__main__":
4649

4750
unittest.main()

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy