Skip to content

Commit 8fb84a2

Browse files
authored
Merge pull request #554 from Cloud-Drift/show-tests-vscode
rename test files
2 parents dcf8d98 + ee23088 commit 8fb84a2

21 files changed

+12
-13
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ conda install pytest matplotlib cartopy coverage
124124
3. Run the test suite:
125125

126126
```
127-
pytest tests/*_tests.py tests/adapters/*_tests.py
127+
pytest tests/*_test.py tests/adapters/*_test.py
128128
```
129129

130130
a. Run the docstring tests:
@@ -134,7 +134,7 @@ pytest tests/*_tests.py tests/adapters/*_tests.py
134134

135135
4. Run the test suite (with coverage):
136136
```
137-
coverage run -m pytest tests/*_tests.py tests/adapters/*_tests.py
137+
coverage run -m pytest tests/*_test.py tests/adapters/*_test.py
138138
```
139139

140140
5. Read the report:

clouddrift/ragged.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -787,11 +787,11 @@ def subset(
787787

788788

789789
def unpack(
790-
ragged_array: np.ndarray,
791-
rowsize: np.ndarray[int],
790+
ragged_array: np.ndarray | xr.DataArray,
791+
rowsize: np.ndarray | xr.DataArray,
792792
rows: int | Iterable[int] = None,
793793
axis: int = 0,
794-
) -> list[np.ndarray]:
794+
) -> list[np.ndarray | xr.DataArray]:
795795
"""Unpack a ragged array into a list of regular arrays.
796796
797797
Unpacking a ``np.ndarray`` ragged array is about 2 orders of magnitude

pyproject.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,9 @@ files = [
7878

7979
[tool.pytest.ini_options]
8080
testpaths = [
81-
"tests/**/*_tests.py",
81+
"tests/**/*_test.py",
8282
]
8383

84-
8584
[[tool.mypy.overrides]]
8685
module = [
8786
"clouddrift.kinematics",
@@ -91,8 +90,8 @@ module = [
9190
"clouddrift.signal",
9291
"clouddrift.sphere",
9392
"clouddrift.wavelet",
94-
"tests.kinematics_tests",
95-
"tests.pairs_tests",
96-
"tests.plotting_tests",
93+
"tests.kinematics_test",
94+
"tests.pairs_test",
95+
"tests.plotting_test",
9796
]
9897
ignore_errors = true

0 commit comments

Comments
 (0)