Skip to content

Commit b946f19

Browse files
committed
fix fragile test windows 1
1 parent 2fe8965 commit b946f19

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

tests/unit/single_table/data_augmentation/test_base.py

+12-12
Original file line numberDiff line numberDiff line change
@@ -231,28 +231,28 @@ def test__transform_preprocess(self, real_training_data, metadata):
231231
# Assert
232232
expected_transformed = {
233233
'real_training_data': pd.DataFrame({
234-
'target': [1, 0, 0],
235-
'numerical': [1, 2, 3],
236-
'categorical': [0, 1, 1],
237-
'boolean': [1, 0, 1],
234+
'target': pd.Series([1, 0, 0], dtype='int64'),
235+
'numerical': pd.Series([1, 2, 3], dtype='int64'),
236+
'categorical': pd.Series([0, 1, 1], dtype='int64'),
237+
'boolean': pd.Series([1, 0, 1], dtype='int64'),
238238
'datetime': pd.to_numeric(
239239
pd.to_datetime(['2021-01-01', '2021-01-02', '2021-01-03'])
240240
),
241241
}),
242242
'synthetic_data': pd.DataFrame({
243-
'target': [1, 0, 0],
244-
'numerical': [1, 2, 3],
245-
'categorical': [0, 1, 1],
246-
'boolean': [1, 0, 1],
243+
'target': pd.Series([1, 0, 0], dtype='int64'),
244+
'numerical': pd.Series([1, 2, 3], dtype='int64'),
245+
'categorical': pd.Series([0, 1, 1], dtype='int64'),
246+
'boolean': pd.Series([1, 0, 1], dtype='int64'),
247247
'datetime': pd.to_numeric(
248248
pd.to_datetime(['2021-01-01', '2021-01-02', '2021-01-03'])
249249
),
250250
}),
251251
'real_validation_data': pd.DataFrame({
252-
'target': [1, 0, 0],
253-
'numerical': [1, 2, 3],
254-
'categorical': [0, 1, 1],
255-
'boolean': [1, 0, 1],
252+
'target': pd.Series([1, 0, 0], dtype='int64'),
253+
'numerical': pd.Series([1, 2, 3], dtype='int64'),
254+
'categorical': pd.Series([0, 1, 1], dtype='int64'),
255+
'boolean': pd.Series([1, 0, 1], dtype='int64'),
256256
'datetime': pd.to_numeric(
257257
pd.to_datetime(['2021-01-01', '2021-01-02', '2021-01-03'])
258258
),

0 commit comments

Comments
 (0)