Skip to content

Commit 4c91259

Browse files
committed
Update tests
Signed-off-by: Itay Dafna <[email protected]>
1 parent 26516d7 commit 4c91259

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/test_datagrid.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,23 +118,23 @@ def test_data_object_generation(dataframe: pd.DataFrame) -> None:
118118
data_object = DataGrid.generate_data_object(dataframe, "ipydguuid")
119119
expected_output = {
120120
"data": [
121-
{"index": "One", "A": 1, "B": 4, "ipydguuid": 0},
122-
{"index": "Two", "A": 2, "B": 5, "ipydguuid": 1},
123-
{"index": "Three", "A": 3, "B": 6, "ipydguuid": 2},
121+
{"id": "One", "A": 1, "B": 4, "ipydguuid": 0},
122+
{"id": "Two", "A": 2, "B": 5, "ipydguuid": 1},
123+
{"id": "Three", "A": 3, "B": 6, "ipydguuid": 2},
124124
],
125125
"schema": {
126126
"fields": [
127-
{"name": "index", "type": "string"},
127+
{"name": "id", "type": "string"},
128128
{"name": "A", "type": "integer"},
129129
{"name": "B", "type": "integer"},
130130
{"name": "ipydguuid", "type": "integer"},
131131
],
132-
"primaryKey": ["index", "ipydguuid"],
132+
"primaryKey": ["id", "ipydguuid"],
133133
"pandas_version": "0.20.0",
134134
"primaryKeyUuid": "ipydguuid",
135135
},
136136
"fields": [
137-
{"index": None},
137+
{"id": None},
138138
{"A": None},
139139
{"B": None},
140140
{"ipydguuid": None},

0 commit comments

Comments
 (0)