4
4
5
5
from pathlib import Path
6
6
7
- import numpy as np
8
7
import pytest
9
8
import xarray as xr
10
9
from pygmt import Figure
11
10
from pygmt .exceptions import GMTInvalidInput
12
- from pygmt .helpers import (
13
- GMTTempFile ,
14
- args_in_kwargs ,
15
- data_kind ,
16
- kwargs_to_strings ,
17
- unique_name ,
18
- )
11
+ from pygmt .helpers import GMTTempFile , args_in_kwargs , kwargs_to_strings , unique_name
19
12
from pygmt .helpers .testing import load_static_earth_relief , skip_if_no
20
13
21
14
@@ -32,25 +25,6 @@ def test_load_static_earth_relief():
32
25
assert isinstance (data , xr .DataArray )
33
26
34
27
35
- @pytest .mark .parametrize (
36
- ("data" , "x" , "y" ),
37
- [
38
- (None , None , None ),
39
- ("data.txt" , np .array ([1 , 2 ]), np .array ([4 , 5 ])),
40
- ("data.txt" , np .array ([1 , 2 ]), None ),
41
- ("data.txt" , None , np .array ([4 , 5 ])),
42
- (None , np .array ([1 , 2 ]), None ),
43
- (None , None , np .array ([4 , 5 ])),
44
- ],
45
- )
46
- def test_data_kind_fails (data , x , y ):
47
- """
48
- Make sure data_kind raises exceptions when it should.
49
- """
50
- with pytest .raises (GMTInvalidInput ):
51
- data_kind (data = data , x = x , y = y )
52
-
53
-
54
28
def test_unique_name ():
55
29
"""
56
30
Make sure the names are really unique.
0 commit comments