Skip to content

Commit 6d3b6c8

Browse files
wpbonelliwpbonelli
authored andcommitted
clean/organize/rename tests
1 parent c09372b commit 6d3b6c8

File tree

8 files changed

+17
-97
lines changed

8 files changed

+17
-97
lines changed

test/test_cattrs.py

Lines changed: 0 additions & 90 deletions
This file was deleted.
File renamed without changes.

test/test_codec.py renamed to test/test_mf6_codec.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""Test the MF6 input file reading/writing capability."""
2+
13
from pprint import pprint
24

35
import pytest

test/test_component.py renamed to test/test_mf6_component.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""Test basic MF6 component behaviors like initialization, modification, access."""
2+
13
from pathlib import Path
24

35
import numpy as np

test/test_parser.py renamed to test/test_mf6_reader.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""Test the MF6 input file reader as implemented with lark."""
2+
13
import os
24
from pathlib import Path
35

File renamed without changes.

test/test_dask_xarray.py renamed to test/test_xarray_dask_open_netcdf.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1+
"""
2+
These tests show how we could use a chunked and lazy dask array
3+
to read a netcdf file.
4+
In this case we want to write the data to a single file,
5+
so we need to ensure that the data is sequential and in the right order.
6+
We can't use xr.map_blocks, because it is a parallel operation.
7+
Instead we need to loop over the blocks and compute them one by one. (test 2)
8+
"""
9+
110
import numpy as np
211
import pytest
312
import xarray as xr
413

5-
# These tests show how we could use a chunked and lazy dask array
6-
# to read a netcdf file.
7-
# In this case we want to write the data to a single file,
8-
# so we need to ensure that the data is sequential and in the right order.
9-
# We can't use xr.map_blocks, because it is a parallel operation.
10-
# Instead we need to loop over the blocks and compute them one by one. (test 2)
11-
1214

1315
@pytest.mark.slow
1416
def test_netcdf_with_map_blocks(tmp_path):

test/test_networkx_xarray.py renamed to test/test_xarray_networkx_disu.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""Explore networkx graph representations of DISU grids and conversion to xarray."""
2+
13
import networkx as nx
24
import scipy as sp
35
import xarray as xr

0 commit comments

Comments
 (0)