Skip to content

Commit 40a367c

Browse files
committed
Fix E712
1 parent 9f6f8bf commit 40a367c

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

tests/test_datamodel.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def test_xaxis_attr() -> None:
5454
assert units.tag == "attr"
5555
assert units.type is str
5656
assert units.value == "pixel"
57-
assert units.cast == False
57+
assert units.cast is False
5858

5959

6060
def test_xaxis_data() -> None:
@@ -64,7 +64,7 @@ def test_xaxis_data() -> None:
6464
assert data.dims == ("x",)
6565
assert data.dtype == "int"
6666
assert data.base is None
67-
assert data.cast == True
67+
assert data.cast is True
6868

6969

7070
def test_yaxis_attr() -> None:
@@ -73,7 +73,7 @@ def test_yaxis_attr() -> None:
7373
assert units.tag == "attr"
7474
assert units.type is str
7575
assert units.value == "pixel"
76-
assert units.cast == False
76+
assert units.cast is False
7777

7878

7979
def test_yaxis_data() -> None:
@@ -83,7 +83,7 @@ def test_yaxis_data() -> None:
8383
assert data.dims == ("y",)
8484
assert data.dtype == "int"
8585
assert data.base is None
86-
assert data.cast == True
86+
assert data.cast is True
8787

8888

8989
def test_image_coord() -> None:
@@ -93,23 +93,23 @@ def test_image_coord() -> None:
9393
assert mask.dims == ("x", "y")
9494
assert mask.dtype == "bool"
9595
assert mask.base is None
96-
assert mask.cast == True
96+
assert mask.cast is True
9797

9898
x = image_model.coords[1]
9999
assert x.name == "x"
100100
assert x.tag == "coord"
101101
assert x.dims == ("x",)
102102
assert x.dtype == "int"
103103
assert x.base is XAxis
104-
assert x.cast == True
104+
assert x.cast is True
105105

106106
y = image_model.coords[2]
107107
assert y.name == "y"
108108
assert y.tag == "coord"
109109
assert y.dims == ("y",)
110110
assert y.dtype == "int"
111111
assert y.base is YAxis
112-
assert y.cast == True
112+
assert y.cast is True
113113

114114

115115
def test_image_data() -> None:
@@ -119,7 +119,7 @@ def test_image_data() -> None:
119119
assert data.dims == ("x", "y")
120120
assert data.dtype == "float"
121121
assert data.base is None
122-
assert data.cast == True
122+
assert data.cast is True
123123

124124

125125
def test_color_data() -> None:
@@ -129,20 +129,20 @@ def test_color_data() -> None:
129129
assert red.dims == ("x", "y")
130130
assert red.dtype == "float"
131131
assert red.base is Image
132-
assert red.cast == True
132+
assert red.cast is True
133133

134134
green = color_model.data_vars[1]
135135
assert green.name == "green"
136136
assert green.tag == "data"
137137
assert green.dims == ("x", "y")
138138
assert green.dtype == "float"
139139
assert green.base is Image
140-
assert green.cast == True
140+
assert green.cast is True
141141

142142
blue = color_model.data_vars[2]
143143
assert blue.name == "blue"
144144
assert blue.tag == "data"
145145
assert blue.dims == ("x", "y")
146146
assert blue.dtype == "float"
147147
assert blue.base is Image
148-
assert blue.cast == True
148+
assert blue.cast is True

0 commit comments

Comments
 (0)