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

# -*- coding: utf-8 -*- 

 

import matplotlib 

# this code is needed to run the tests without any X11 or any other 

# display, e.g. via a SSH connection. Import it only once, else a nasty 

# warning occurs. 

# see also: http://matplotlib.sourceforge.net/faq/howto_faq.html 

try: 

    matplotlib.use('AGG', warn=False) 

except TypeError:  # needed for matplotlib 0.91.2 

    matplotlib.use('AGG') 

 

import unittest 

from obspy.core.util import add_doctests, add_unittests 

 

 

MODULE_NAME = "obspy.imaging" 

 

 

def suite(): 

    suite = unittest.TestSuite() 

    add_doctests(suite, MODULE_NAME) 

    add_unittests(suite, MODULE_NAME) 

    return suite 

 

 

if __name__ == '__main__': 

    unittest.main(defaultTest='suite')