Skip to content

Commit 0776801

Browse files
test route textures
1 parent 6b984d2 commit 0776801

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

tests/test_routes.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,24 @@ def get_full_data():
168168
test_utils.test_route_wrong_params(client, route, get_full_data)
169169

170170

171+
172+
173+
174+
def test_texture_coordinates(client):
175+
response = client.post(
176+
"/texture_coordinates",
177+
json={
178+
"input_geode_object": "PolygonalSurface3D",
179+
"filename": "hat.vtp",
180+
},
181+
)
182+
assert response.status_code == 200
183+
texture_coordinates = response.json["texture_coordinates"]
184+
assert type(texture_coordinates) is list
185+
for texture_coordinate in texture_coordinates:
186+
assert type(texture_coordinate) is str
187+
188+
171189
def test_vertex_attribute_names(client):
172190
response = client.put(
173191
f"/upload_file",

0 commit comments

Comments
 (0)