Skip to content

Commit

Permalink
remove obsolete unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danielfromearth committed Dec 12, 2024
1 parent 733a464 commit 7a34e35
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,8 @@
from contextlib import nullcontext as does_not_raise

import netCDF4 as nc
import pytest

from ncompare.core import (
_get_vars,
_var_properties,
compare,
)
Expand Down Expand Up @@ -73,16 +71,6 @@ def test_no_error_compare_2groupsTo1Subgroup(
compare_ba(ds_3dims_3vars_4coords_2groups, ds_3dims_3vars_4coords_1subgroup)


def test_get_vars_with_group(ds_3dims_3vars_4coords_1group):
result = _get_vars(ds_3dims_3vars_4coords_1group, groupname="Group1")
assert set(result) == {"step", "var1", "var2", "w"}


def test_get_vars_error_when_no_group(ds_3dims_2vars_4coords):
with pytest.raises(OSError):
_get_vars(ds_3dims_2vars_4coords, groupname="nonexistent_group")


def test_var_properties(ds_3dims_3vars_4coords_1group):
with nc.Dataset(ds_3dims_3vars_4coords_1group) as ds:
result = _var_properties(ds.groups["Group1"], varname="step")
Expand Down

0 comments on commit 7a34e35

Please sign in to comment.