Skip to content

Commit 90e0434

Browse files
committed
remove copy of existing function
1 parent 0a43284 commit 90e0434

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

tests/dataconverter/test_validation.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
# limitations under the License.
1818
#
1919
import logging
20-
import random
2120
from typing import Optional
2221

2322
import numpy as np
@@ -70,16 +69,6 @@ def compress_paths_in_dict(data_dict: Template, paths=list[str]):
7069
return None
7170

7271

73-
def alter_dict(data_dict: Template, key: str, value: object):
74-
"""Helper function to alter a single entry in dict for parametrize."""
75-
if data_dict is not None:
76-
internal_dict = Template(data_dict)
77-
internal_dict[key] = value
78-
return internal_dict
79-
80-
return None
81-
82-
8372
def remove_from_dict(data_dict: Template, key: str, optionality: str = "optional"):
8473
"""Helper function to remove a key from dict"""
8574
if data_dict is not None and key in data_dict[optionality]:

0 commit comments

Comments
 (0)