Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

"""Script for running all gpkit unit tests""" 

from gpkit.tests.run_tests import run 

 

def import_tests(): 

"""Get a list of all robust unit test TestCases""" 

tests = [] 

 

from robust.testing import t_equivalent_posynomials 

tests += t_equivalent_posynomials.TESTS 

 

from robust.testing import t_linearization 

tests += t_linearization.TESTS 

 

from robust.testing import t_primitives 

tests += t_primitives.TESTS 

 

from robust.testing import t_robust_gp_tools 

tests += t_robust_gp_tools.TESTS 

 

from robust.testing import t_two_term_approximation 

tests += t_two_term_approximation.TESTS 

 

return tests 

 

 

def test(): 

run(tests=import_tests()) 

 

 

if __name__ == '__main__': 

test()