Skip to content

Commit 09d2a64

Browse files
committed
Test update
1 parent 5fed11d commit 09d2a64

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

tests/test_validate.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
_check_fill_value,
1111
_check_coordinates,
1212
_check_required_dimensions,
13-
ends_with_3_digits,
13+
_check_ends_with_3_digits,
1414
validate_obc_file,
1515
)
1616

@@ -95,16 +95,16 @@ def test_check_required_dimensions_invalid_4d_for_surface(caplog):
9595
assert "dimension" in caplog.text.lower()
9696

9797

98-
# ends_with_3_digits tests
99-
def test_ends_with_3_digits_valid_cases():
98+
# _check_ends_with_3_digits tests
99+
def test_check_ends_with_3_digits_valid_cases():
100100
"""String ending with 3 digits returns True"""
101-
assert ends_with_3_digits("temp_001") is True
102-
assert ends_with_3_digits("var_999") is True
103-
assert ends_with_3_digits("_000") is True
104-
assert ends_with_3_digits("temp_01") is False
105-
assert ends_with_3_digits("temp_0001") is False
106-
assert ends_with_3_digits("temp_abc") is False
107-
assert ends_with_3_digits("temp") is False
101+
assert _check_ends_with_3_digits("temp_001") is True
102+
assert _check_ends_with_3_digits("var_999") is True
103+
assert _check_ends_with_3_digits("_000") is True
104+
assert _check_ends_with_3_digits("temp_01") is False
105+
assert _check_ends_with_3_digits("temp_0001") is False
106+
assert _check_ends_with_3_digits("temp_abc") is False
107+
assert _check_ends_with_3_digits("temp") is False
108108

109109

110110
# validate_obc_file tests

0 commit comments

Comments
 (0)