Skip to content

Commit

Permalink
fix quality gate test
Browse files Browse the repository at this point in the history
Signed-off-by: Zhen Wang <zhen.wang@alliander.com>
  • Loading branch information
zhen0427 committed Jul 15, 2024
1 parent 6eaa576 commit e95b696
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 5 additions & 0 deletions tests/unit/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
json_serialize_to_file,
msgpack_deserialize_from_file,
msgpack_serialize_to_file,
self_test,
)


Expand Down Expand Up @@ -161,3 +162,7 @@ def test_msgpack_serialize(serialize_mock: MagicMock, open_mock: MagicMock):
serialize_mock.assert_called_once_with(data=data, dataset_type=None, use_compact_list=False)
handle = open_mock()
handle.write.assert_called_once_with(serialize_mock.return_value)


def test_self_test():
self_test()
6 changes: 1 addition & 5 deletions tests/unit/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
PowerGridError,
PowerGridSerializationError,
)
from power_grid_model.utils import json_deserialize, json_deserialize_from_file, json_serialize_to_file, self_test
from power_grid_model.utils import json_deserialize, json_deserialize_from_file, json_serialize_to_file

BASE_PATH = Path(__file__).parent.parent
DATA_PATH = BASE_PATH / "data"
Expand Down Expand Up @@ -307,7 +307,3 @@ def convert_python_to_numpy(data: PythonDataset, data_type: DatasetType) -> Data
}
)
)


def test_self_test():
self_test()

0 comments on commit e95b696

Please sign in to comment.