Skip to content

Commit f759bb6

Browse files
committed
py tests too
1 parent 1e0f61c commit f759bb6

File tree

1 file changed

+7
-26
lines changed

1 file changed

+7
-26
lines changed

rerun_py/tests/unit/test_dataframe.py

+7-26
Original file line numberDiff line numberDiff line change
@@ -104,36 +104,14 @@ def test_schema_recording(self) -> None:
104104
# Color, Points3DIndicator, Position3D, Radius, Text, TextIndicator
105105
assert len(schema.component_columns()) == 6
106106

107-
# TODO(cmc): revert me
108-
# assert schema.index_columns()[0].name == "log_tick"
109-
# assert schema.index_columns()[1].name == "log_time"
110-
# assert schema.index_columns()[2].name == "my_index"
111-
# assert schema.component_columns()[0].entity_path == "/points"
112-
# assert schema.component_columns()[0].component_name == "rerun.components.Points3DIndicator"
113-
# assert schema.component_columns()[0].is_static is False
114-
# assert schema.component_columns()[1].entity_path == "/points"
115-
# assert schema.component_columns()[1].component_name == "rerun.components.Color"
116-
# assert schema.component_columns()[1].is_static is False
117-
# assert schema.component_columns()[2].entity_path == "/points"
118-
# assert schema.component_columns()[2].component_name == "rerun.components.Position3D"
119-
# assert schema.component_columns()[2].is_static is False
120-
# assert schema.component_columns()[3].entity_path == "/points"
121-
# assert schema.component_columns()[3].component_name == "rerun.components.Radius"
122-
# assert schema.component_columns()[3].is_static is False
123-
# assert schema.component_columns()[4].entity_path == "/static_text"
124-
# assert schema.component_columns()[4].component_name == "rerun.components.TextLogIndicator"
125-
# assert schema.component_columns()[4].is_static is True
126-
# assert schema.component_columns()[5].entity_path == "/static_text"
127-
# assert schema.component_columns()[5].component_name == "rerun.components.Text"
128-
# assert schema.component_columns()[5].is_static is True
129107
assert schema.index_columns()[0].name == "log_tick"
130108
assert schema.index_columns()[1].name == "log_time"
131109
assert schema.index_columns()[2].name == "my_index"
132110
assert schema.component_columns()[0].entity_path == "/points"
133-
assert schema.component_columns()[0].component_name == "rerun.components.Color"
111+
assert schema.component_columns()[0].component_name == "rerun.components.Points3DIndicator"
134112
assert schema.component_columns()[0].is_static is False
135113
assert schema.component_columns()[1].entity_path == "/points"
136-
assert schema.component_columns()[1].component_name == "rerun.components.Points3DIndicator"
114+
assert schema.component_columns()[1].component_name == "rerun.components.Color"
137115
assert schema.component_columns()[1].is_static is False
138116
assert schema.component_columns()[2].entity_path == "/points"
139117
assert schema.component_columns()[2].component_name == "rerun.components.Position3D"
@@ -142,11 +120,14 @@ def test_schema_recording(self) -> None:
142120
assert schema.component_columns()[3].component_name == "rerun.components.Radius"
143121
assert schema.component_columns()[3].is_static is False
144122
assert schema.component_columns()[4].entity_path == "/static_text"
145-
assert schema.component_columns()[4].component_name == "rerun.components.Text"
123+
assert schema.component_columns()[4].component_name == "rerun.components.TextLogIndicator"
146124
assert schema.component_columns()[4].is_static is True
147125
assert schema.component_columns()[5].entity_path == "/static_text"
148-
assert schema.component_columns()[5].component_name == "rerun.components.TextLogIndicator"
126+
assert schema.component_columns()[5].component_name == "rerun.components.Text"
149127
assert schema.component_columns()[5].is_static is True
128+
assert schema.index_columns()[0].name == "log_tick"
129+
assert schema.index_columns()[1].name == "log_time"
130+
assert schema.index_columns()[2].name == "my_index"
150131

151132
def test_schema_view(self) -> None:
152133
schema = self.recording.view(index="my_index", contents="points").schema()

0 commit comments

Comments
 (0)