Skip to content

Commit

Permalink
Use again as pytesting. Removed the serialization test as serializati…
Browse files Browse the repository at this point in the history
…on was moved to the data_transformer class
  • Loading branch information
louisPoulain committed Jun 25, 2024
1 parent 5f76a3e commit 0edf87d
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions tests/_standardizers.py → tests/test_standardizers.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,3 @@ def test_inverse_transform(features_dataset):
for var in features_dataset.data_vars
)
assert all(var in inv_ds.data_vars for var in features_dataset.data_vars)


def test_serialization(features_dataset, tmp_path):
fn = f"{tmp_path}/standardizer.json"
standardizer = Standardizer(fillvalue=-5)
standardizer.fit(features_dataset)
standardizer.save_json(fn)
new_standardizer = Standardizer.from_json(fn)
assert standardizer.fillvalue == new_standardizer.fillvalue
assert standardizer.mean.identical(new_standardizer.mean)
assert standardizer.std.identical(new_standardizer.std)

0 comments on commit 0edf87d

Please sign in to comment.